# <%-
name
-%>

<%-
typeof description !== 'undefined'
? '\n' + description + '\n'
: ''
-%>
<%
if (typeof provides !== 'undefined') {
%>
This service provides the following Foxx dependencies:
<%
  Object.keys(provides).sort().forEach(function (key) {
%>
* **<%-
    key
%>**: `<%-
    provides[key]
%>`
<%
  });
%>
<%
}
-%>
<%
if (typeof configuration !== 'undefined') {
-%>

## Configuration

This service has the following configuration options:

<%
  Object.keys(configuration).sort().forEach(function (key) {
    var cfg = configuration[key];
-%>
* **<%-
    key
%>**: `<%-
    cfg.type
%>`<%-
    cfg.default
    ? ' (Default: `' + cfg.default + '`)'
    : (cfg.required ? '' : ' (optional)')
%>
<%-
    cfg.description
    ? '\n  ' + cfg.description.replace(/\n/g, '\n  ') + '\n'
    : ''
%>
<%
  });
-%>
<%
}
-%>
<%
if (typeof dependencies !== 'undefined') {
-%>

## Dependencies

This service uses the following Foxx dependencies:

<%
  Object.keys(dependencies).sort().forEach(function (key) {
    var dep = dependencies[key];
-%>
* **<%-
    dep.alias
%>**: `<%-
    dep.name
%>:<%-
    dep.version
%>`<%-
    typeof dep.multiple !== 'undefined'
    ? ' (multiple)'
    : ''
%><%-
    typeof dep.required !== 'undefined'
    ? ''
    : ' (optional)'
%>
<%-
    typeof dep.description !== 'undefined'
    ? '\n  ' + dep.description.replace(/\n/g, '\n  ') + '\n'
    : ''
%>
<%
  });
-%>
<%
}
-%>

## License
<%
if (typeof license !== 'undefined' && license) {
%>
The <%-
  license
%> license. For more information, see the accompanying LICENSE file.
<%
} else {
%>
Copyright (c) <%-
  new Date().getFullYear()
%> <%-
    typeof authorName !== 'undefined' && authorName ? authorName : '<copyright holders>'
%>. All rights reserved.
<%
}
-%>
