Stackedit/src/data/empties/emptyTemplateHelpers.js
2018-07-17 20:58:40 +01:00

17 lines
359 B
JavaScript

/* Add your custom Handlebars helpers here.
For example:
Handlebars.registerHelper('transform', function (options) {
var result = options.fn(this);
return new Handlebars.SafeString(
result.replace(/<pre[^>]*>/g, '<pre class="prettyprint">')
);
});
Then use the helper in your template:
{{#transform}}{{{files.0.content.html}}}{{/transform}}
*/