eas

easytpl

a simple JavaScript template engine

Showing:

Popularity

Downloads/wk

24

GitHub Stars

3

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

easyTpl

easyTpl, a simple JavaScript template.

Install

  1. Node environment
npm install easytpl
  1. Client environment
bower install easytpl

Useage


var easyTpl = require('easyTpl');
var tpl = 'hello my name is {{name}}. I have a {{dog.age}} year old dog. His color is {{dog.color}}.';

var data = {
    name: 'hunger',
    dog: {
        color: 'yellow',
        age: 2
    }
};

var str = easyTpl(tpl, data);
console.log(str);

more demos in sample folder.

online demo? visit [http://book.jirengu.com/jirengu/easytpl].

Test

make test

Auther

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial