simplate

0.2.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.2
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.2
    3
  • 0.2.1
    0
  • 0.2.0
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i simplate

Weekly Downloads

3

Version

0.2.2

License

none

Last publish

Collaborators

  • serby