Handlebars.Net
Handlebars.Net copied to clipboard
Setting a variable in the context
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}}