1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-10 07:47:07 +01:00

Support no-escape option for Handlebars themes.

This commit is contained in:
hacksalot
2018-01-29 05:21:46 -05:00
parent 17259cedbf
commit 6b125ed907
7 changed files with 25 additions and 6 deletions

View File

@ -29,8 +29,8 @@ HandlebarsGenerator = module.exports =
try
# Compile and run the Handlebars template.
template = HANDLEBARS.compile tpl, {
strict: false, assumeObjects: false, noEscape: true}
template = HANDLEBARS.compile tpl,
strict: false, assumeObjects: false, noEscape: data.opts.noescape || false
return template data
catch
throw