8000 GitHub - serby/simplate: A light weight async template parser.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

serby/simplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A light weight async template parser.

Resources

Stars

Watchers

Forks

Packages

No packages published
0