1.0.0 • Published 6 years ago
simptpl v1.0.0
simpTpl
A lightweight js tempalte engine.
Install
- Node environment
npm install simpTpl
- Client environment
bower install simpTpl
Usage
var simpTpl = require('../lib/simpTpl.js');
var tpl = 'hello,I\'m {{name}},I\'am {{age}} years old'
var data = {
name:'xinxin',
age:'23'
}
console.log( simpTpl(tpl,data) )
More demos in sample folder
Test
make test
Author
- zhouxinme@gmail.com
1.0.0
6 years ago