Quickly create a Handlebars helper that can easily be used with Assemble
Want to see pretty graphs? Log in now!
npm install grunt-init-helper-mod
|8||downloads in the last week|
|15||downloads in the last month|
|Last Published By|
|Version||0.1.4 last updated 4 months ago|
|Keywords||assemble, generator, markdown, handlebars, grunt handlebars, grunt init, grunt task, grunt templates, site generator, yeoman generator, yeoman, yo|
Quickly create helpers for use with Assemble, using grunt-init. Includes README documentation, test files, metadata, bower.json and package.json.
npm i -g grunt-cli grunt-init
Once grunt-init is installed, place this template in your
~/.grunt-init/ directory. It's recommended that you use
git clone to install this template into that directory as follows:
(Windows users, see the documentation for the correct destination directory path)
git clone https://github.com/assemble/grunt-init-helper.git ~/.grunt-init/helper
Note that you may make the template available as any name you choose by simply changing the name of the folder in which the template is stored. So instead of
~/.grunt-init/helper, you may change the name to
~/.grunt-init/foo so that this template is available to be used with the following command:
grunt init is intalled, navigate to the directory where you want the helper to be generated and then:
- At the command-line run
- Enter a name for the helper at the first prompt
This will generate a helper with example code that can be modified or removed.
Note that no warning will be issued if you create a helper with the same name as an existing helper, in which case the existing helper of the same name will be overwritten.
- grunt-init-assemble: Initialize new Assemble projects, with example mixins, helpers, templates and data.
- Assemble's documentation
Copyright and license
Copyright 2013 Jon Schlinkert