JsRender Demos

Associating specific contextual helpers with templates

Including helpers in a template definition.
$.templates({
    appTmpl: {
        markup:"#appTmpl",
        helpers: {
            supplierUtils: ...
        }
    }
});
Passing different helpers to a sub-template based on the context where it is used.
{{for suppliers tmpl="personTmpl" ~utils=~supplierUtils/}}
Accessing helper from nested template:
<b>ID:</b> <em>{{:~utils.format(id)}}</em>