From e6f12453b8019bda8c4693e52b71dc043ffeb97a Mon Sep 17 00:00:00 2001 From: "Jocelyn Badgley (Twipped)" Date: Thu, 5 Mar 2020 19:40:18 -0800 Subject: [PATCH] More handlebar helper bugs --- build/engines.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/engines.js b/build/engines.js index c2cbf55..1cf5c02 100644 --- a/build/engines.js +++ b/build/engines.js @@ -196,7 +196,7 @@ class Injectables { let contents; if (fn) { - contents = stripIndent(fn(data)); + contents = stripIndent(fn(data.root)); } else { let tpath = args.shift(); tpath = self._parsePath(tpath, data.root.local, 'md'); @@ -215,7 +215,7 @@ class Injectables { return function (tpath, ...args) { const { hash, data } = args.pop(); const value = args.shift(); - const context = handlebars.createFrame(value || data); + const context = handlebars.createFrame(value || data.root); Object.assign(context, hash || {}); tpath = self._parsePath(tpath, data.root.local, 'hbs');