Skip to content

Commit 2fb735a

Browse files
committed
Re-add handlebar helper
1 parent 3535578 commit 2fb735a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/pwa-kit-create-app/scripts/create-mobify-app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ sh.set('-e')
5959
// will ensure those escaped double quotes are still escaped after processing the template.
6060
Handlebars.registerHelper('script', (object) => object.replaceAll('"', '\\"'))
6161

62+
Handlebars.registerHelper('ifEquals', function (arg1, arg2, options) {
63+
return arg1 == arg2 ? options.fn(this) : options.inverse(this)
64+
})
65+
6266
// Validations
6367
const validPreset = (preset) => {
6468
return ALL_PRESET_NAMES.includes(preset)

0 commit comments

Comments
 (0)