Handlebars debugging or log

i find this helper to be quite useful

Handlebars.registerHelper(“debug”, function(optionalValue) {
    console.log(“Current Context”);
    if (optionalValue) {

then you can use it in two ways in your template..

just a simple


which will print out the current context

or to inspect a single value

{{debug val}}

to just print out that value.

You can do the same for console.log like shown below…

Handlebars.registerHelper(“log”, function(something) {
In template, add like shown
{{log specificationData}}