Handlebars-Net/Handlebars.Net

Setting a variable in the context

gcubar opened this issue · 0 comments

How to define a helper to set, in the context, a variable with its respective value, and then handle it, either in an expression, or to print it.

{{set variableName "variableValue"}}
...
{{#if variableName}}
{{variableName}}
{{/if}}