Support no-escape option for Handlebars themes.

This commit is contained in:
hacksalot committed 2018-01-29 05:21:46 -05:00
1 parent 17259cedbf
commit 6b125ed907
7 files changed
+25 -6

No files matched your search

+3 -2
View File
@@ -34,12 +34,13 @@ Definition of the HandlebarsGenerator class.
HandlebarsGenerator = module.exports = {
generateSimple: function(data, tpl) {
var template;
var noesc, template;
try {
noesc = data.opts.noescape || false;
template = HANDLEBARS.compile(tpl, {
strict: false,
assumeObjects: false,
noEscape: true
noEscape: noesc
});
return template(data);
} catch (_error) {