mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2026-05-22 11:45:52 +01:00
Support no-escape option for Handlebars themes.
This commit is contained in:
+3
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user