Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

75lb/handlebars-fs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Access to the node fs module from Handlebars

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published