1.0.0 • Published 9 years ago

handlebars-fs v1.0.0

Weekly downloads
19
License
-
Repository
github
Last release
9 years ago

view on npm npm module downloads per month Dependency Status

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")}}}
}