Skip to content

Commit

Permalink
Merge pull request #1 from gleuch/fix-compile-options
Browse files Browse the repository at this point in the history
Support compiler options
  • Loading branch information
gastonrobledo authored Mar 14, 2022
2 parents 407c651 + fb3ba75 commit 1fe2343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ function asyncHelpers(handlebars) {
return _template(spec, handlebars)
}

handlebars.compile = function() {
const compiled = _compile.apply(handlebars, [...arguments, { noEscape: true }])
handlebars.compile = function(template, options) {
const compiled = _compile.apply(handlebars, [template, { ...options, noEscape: true }])

return function(context, execOptions) {
context = context || {}
Expand Down

0 comments on commit 1fe2343

Please sign in to comment.