{{#default()}}
{{#default()}}BLOCK{{/default}}
Renders BLOCK if no {{#case(expression)}} blocks within the {{#switch(expression)}} resolved.
{{#switch(user.type)}}
{{#case("admin")}}
<button value="edit"/>
{{/case}}
{{#case("manager")}}
<button value="view">
{{/case}}
{{#default()}}
You do not have permission!
{{/default}}
{{/switch}}
Parameters
- BLOCK
{sectionRenderer(context, helpers)}:a template to be rendered.
Use
The default helper is contextual inside of a {{#switch(expression)}} block. It acts as a fall-through in case none of the {{#case(expression)}} helpers resolved.
For more information on how {{#default()}} is used check: