can
Version:
MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.
24 lines (16 loc) • 635 B
Markdown
6
`{{#with key}}BLOCK{{/with}}`
Changes the context within a block.
{can.stache.key} key A key that references a value within the current or parent
context. If the value is a function or can.compute, the function's
return value is used.
{can.stache} BLOCK A template that is rendered
with the context of the `key`'s value.
Stache typically applies the context passed in the section
at compiled time. However, if you want to override this
context you can use the `with` helper.
{{#with arr}}
// with
{{/with}}
can.stache.helpers.with {{#with key}}
can.stache.htags