Super easy template engine. Write templates in JSON!
var jt = ; var template = ; console; // <div>foo</div>
Install
npm install jt
jt
return function(template) that can be callen in future
API
You can create template from string, array, json and functions
var template = ; ; // 'hello'
var template = ; ; // 'hello world'
var template = ; ; // '<span class="text">hello world</span>'
Use function
as argument to create dynamic templates
var template = ; ; // '<span class="text">hello world</span>'
var template = ; ; // '<span class="text">hello world</span>'