Handles have a built-in auxiliary log .
You just need to set the logging level to DEBUG .
Handlebars.logger.level = 0;
Then use the helper:
{{log this}}
EDIT: Sorry, this will not write context for HTML, the helper uses console.log. For HTML output, you need to write a special helper that will use, for example, JSON.stringify .
source share