grunt-readme
Version:
Grunt plugin for generating a README from templates, including an optional table of contents. No Gruntfile config is necessary, just choose a starter template and you'll be ready to go.
63 lines (48 loc) • 1.24 kB
Markdown
# {{{%= name %}}} [](http://badge.fury.io/js/helper-{%= name %})
> {%= name %} handlebars helper, for doing foo, bar and baz.
## Quickstart
In the root of your project, run the following in the command line:
```bash
npm i helper-{%= name %} --save-dev
```
## Usage
```handlebars
{{{%= name %} "path/to/file.{%= name %}"}}
```
## Usage in Assemble
In your Gruntfile, simply add `helper-{%= name %}` to the `helpers` property in the [Assemble](http://assemble.io) task or target options:
```javascript
grunt.initConfig({
assemble: {
options: {
helpers: ['helper-{%= name %}']
}
...
}
});
```
With that completed, you may now being using the `{%= name %}` helper in your Assemble project.
## Options
### task options
Options can be set in your Gruntfile, in the `{%= name %}` object in the Assemble task or target options:
```javascript
grunt.initConfig({
assemble: {
options: {
{%= _.shortname(name) %}: {
foo: true
}
}
...
}
});
```
## Related projects
{%= _.include("related-repos.md") %}
## Author
{%= _.contrib("authors.md") %}
## License
{%= copyright %}
{%= license %}
***
{%= _.include("footer.md") %}