0.0.1 • Published 9 years ago
handlebarsjs-cli v0.0.1
handlebarsjs-cli
Invoke handlebars from the commandline.
Example:
echo "Hello {{name}}" | handlebarsjs-cli --name TestOutput:
Hello TestYou 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.txtinstall
npm install -g handlebarsjs-cliinclude 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
0.0.1
9 years ago