0.0.1 • Published 8 years ago

handlebarsjs-cli v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

handlebarsjs-cli

Invoke handlebars from the commandline.

Example:

echo "Hello {{name}}" | handlebarsjs-cli --name Test

Output:

Hello Test

You may also pass a JSON string as an argument and it will be interpreted as an object.

You can also pass a JSON file:

handlebarsjs-cli data.json < template.tpl > output.txt

install

npm install -g handlebarsjs-cli

include helper

handlebars-cli comes with a built-in helper #include

{{{include 'api.md'}}}

You can also pass context (optional)

{{{include 'render.md.hbs' item}}}

license

MIT