npm.io
0.0.0 • Published 10 years ago

templer

Licence
MIT
Version
0.0.0
Deps
0
Vulns
0
Weekly
0

node-templr

Insanely simple JavaScript string templating system

Usage

var templer = require('templer');

var s = 'hello {{name}}, the year is {{year}}';
var data = {
  name: 'dave',
  year: new Date().getFullYear()
};

var rendered = templer(s, data);
// => "hello dave, the year is 2015"

Installation

npm install templer

License

MIT License

Keywords