Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Handlebars static helpers - js

  • SafeString
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