Handlebars static helpers - js



examples/handlebars/handlebars_helper_static.js
Handlebars.registerHelper('greeting', function() {
    return new Handlebars.SafeString( '<i>Hello World at ' + new Date + '</i>' );
});

Use SafeString here, if you want to make sure HTML tags are NOT escaped by Handlebars