can.Mustache.helperOptions
{Object}
Object
Properties
-
fn
{function(context)}
Optional
Provided if a
section helper is called. Call fn
to
render the BLOCK with the specified context
.
-
inverse
{function(context)}
Optional
Provided if a
section helper is called
with {{else}}. Call inverse
to
render the INVERSE with the specified context
.
-
hash
{Object<String,* | String | Number>}
An object containing all of the final
arguments listed as name=value
pairs for the helper.
{{helper arg1 arg2 name=value other=3 position="top"}}
options.hash = {
name: <context_lookup>.value,
other: 3,
position: "top"
}
-
contexts
{Array}
An array containing the context lookup stack for the current helper.
{{#section}}
{{#someObj}}
{{#panels}}
{{helper}}
{{/panels}}
{{/someObj}}
{{/section}}
options.contexts = [
<root_scope>,
<context_lookup>.section,
<context_lookup>.someObj,
panel
]