0.2.2 • Published 12 years ago

simplate v0.2.2

Weekly downloads
15
License
-
Repository
github
Last release
12 years ago

simplate - Lightweight async template parser

build status

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

Adam Duncan

Licence

Licenced under the New BSD License

0.2.2

12 years ago

0.2.1

12 years ago

0.2.0

12 years ago

0.0.1

12 years ago