Legacy Handlebars support
As well as HSVT templates, Haplo also supports legacy Handlebars templates. Templates have a
.html file extension.
Handlebars and HSVT templates can be seamlessly mixed in a plugin.
You should not use Handlebars for new plugins, and Handlebars support will be removed from a future version of the platform. This documentation is to support existing Haplo plugins.
Handlebars partials are automatically supported, and can refer to plugin templates, standard templates, or the legacy Handlebars standard templates.
Some handlebars helpers are provided.
Plugin Handlebars helpers
Plugin objects implement a function to register a custom Handlebars helper for your templates.
function registerHandlebarsHelper(name, helperFunction)
Register a Handlebars helper function, making it available to all the templates rendered by this plugin.