Stackedit/src/data/emptyTemplateHelpers.js

17 lines
356 B
JavaScript
Raw Normal View History

/* 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}}{{{file.content.html}}}{{/transform}}
*/
2017-09-23 19:01:50 +00:00