simplate

Simple file based template parser

simplate - Lightweight async template parser

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(errorcontent) {
  console.log(content); // Will output "Hello Jim" 
});
 

Paul Serby follow me on twitter

Adam Duncan

Licenced under the New BSD License