{{#default}}

  • function
can.stache.helpers.default  

{{#default}}BLOCK{{/default}}

Renders the BLOCK if no {{#case expr}} blocks within the switch resolved.

Parameters

  1. BLOCK {can.stache(template)}

    a template to be rendered.

Returns

{DocumentFragment}

A fragment, containing the rendered block.

The default helper is contextual inside of a {{#switch expr}} block. It acts as a fall-through in case none of the {{#case expr}} helpers resolved.

For more information on how {{#default}} is used check: