This is a Ghost "App" that will implement a custom Handlebars helper the same as https://apatchofcode.com/adding-custom-handlebars-for-ghost-equals-awesome/
Create a new directory in contents/apps
eg:
mkdir contents/apps/myhelpers
Place package.json
and index.js
in the directory.
To enable the app you need to manually add it to the database as described at: https://github.com/TryGhost/Ghost/wiki/Apps-Getting-Started-for-Ghost-Devs
Restart ghost
Simply use the new helper in your template, eg:
{{#compare 'apples' '===' 'oranges'}}
<p>Totally not the case.<p>
{{/compare}}
{{#compare 'apples' 'typeof' 'string'}}
<p>I think we're onto something.<p>
{{/compare}}