simplate
v0.2.2
Published
Simple file based template parser
Downloads
25
Readme
simplate - Lightweight async template parser
A super lightweight async template parser for nodejs
Installation
$ npm install simplate
Usage
File: fileToParse.txt:
Hello #{NAME}
Code:
var fileToParse = 'fileToParse.txt'
, simplate = require('simplate');
simplate.parse(fileToParse, { NAME: 'Jim'}, function(error, content) {
console.log(content); // Will output "Hello Jim"
});
Credits
Paul Serby follow me on twitter
Licence
Licenced under the New BSD License