Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bahamas10/node-templer

Insanely simple JavaScript string templating system
https://github.com/bahamas10/node-templer

Last synced: about 2 months ago
JSON representation

Insanely simple JavaScript string templating system

Awesome Lists containing this project

README

        

node-templr
===========

Insanely simple JavaScript string templating system

Usage
-----

``` js
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