A super lightweight async template parser for nodejs
$ npm install simplate
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"
});
Paul Serby follow me on twitter
Licenced under the New BSD License