From 4f75cee3e836b31951f80c4903848aefeaf66c74 Mon Sep 17 00:00:00 2001 From: Florian Bischof Date: Thu, 15 Sep 2022 10:33:16 +0200 Subject: [PATCH] Add possibility to pass options --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a51506e..c562375 100644 --- a/index.js +++ b/index.js @@ -385,7 +385,7 @@ class HandlebarsPlugin { let templateContent = this.readFile(sourcePath, "utf-8"); templateContent = this.options.onBeforeCompile(this.HB, templateContent) || templateContent; // create template - const template = this.HB.compile(templateContent); + const template = this.HB.compile(templateContent, this.options.options); const data = this.options.onBeforeRender(this.HB, this.data, sourcePath) || this.data; // compile template let result = template(data);