templut
v1.0.0
Published
handlebars-like templating
Downloads
3
Readme
handlebars-like templating
var templater = new templut();
templater.filter('capitalise', function(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
});
var html = templater.replace('hi there {{name|capitalise}}. {{greeting}}', {
name: 'fergus',
greeting: 'How are you?'
});
returns
hi there Fergus. How are you?