TryGhost/express-hbs

can I set a variable in a helper use by other helper in one page?

elover opened this issue · 2 comments

can I set a variable in a helper use by other helper in one page?

This is a handlebars question, rather than anything to do with express-hbs 😉

Handlebars does not support the setting of variables. The only feature that works slightly like this is that partials can be passed options. So if you include a partial called my-partial like this:

{{> my-partial foo="bar"}}

Then {{foo}} will output 'bar' inside that partial.

but it some like helper "contentFor" and "block"