From fb3ba7541a7904e11f68757afddf5589ba6e98eb Mon Sep 17 00:00:00 2001 From: Greg Leuch Date: Fri, 11 Mar 2022 18:40:24 -0500 Subject: [PATCH] support compiler options --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 251ae6d..0bd99c9 100644 --- a/index.js +++ b/index.js @@ -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 || {}