How to pass a variable from a plugin's initializer to an .hbs file?


(Steven Slade) #1

Continuing the discussion from Handlebars.compile is not a function?:

If you define a variable in the export initializer (let’s say var foo and it’s a boolean) then how do you achieve:

{{#if foo}}
// html code here
{{/if}}

…in the .hbs file.