1.0.0 • Published 9 years ago
handlebars-fs v1.0.0
handlebars-fs
Handlebars helper mappings for the node.js fs module.
Install
$ npm install handlebars-fs --save
Usage
var handlebars = require("handlebars");
/* this will register the handlebars-fs helpers on your handlebars instance */
require("handlebars-fs")(handlebars);
Example
{{#if (fs-exists 'readme.md')}}
Readme exists
{{/if}}
{
"content": {{{json-stringify (fs-readFile "article.md")}}}
}