Handlebars Templates

Sandbox for experimenting with the Handlebars templating engine. Allows you to set a text template, JSON object and display the result processed by the handlebars js library

The template entered in the "Handlebars Template" field is passed to the Handlebars.compile function. The text entered in the "JSON" field is passed to the JSON.parse function. Because of this, the text should be "classic" JSON - all field names are in quotes, no trailing commas, and so on. The parsed object is passed to the compiled template, the execution result is displayed in the "Execution result" field.

PLANETCALC, Handlebars

Handlebars

Execution result
 

URL copied to clipboard
PLANETCALC, Handlebars Templates

Comments