Conformance Examples 0.1.0 — Partials: basic-rendering¶
partial-renders-against-current-context¶
A partial renders against the current context, so an identifier inside it resolves against the active scope.
Template
Context
Partials
who:
Output
partial-inside-each-sees-loop-element¶
A partial used inside {{#each}} renders against the element the loop pushed onto the context stack.
Template
Context
Partials
memberInfo:
Output
dynamic-key-resolves-partial-from-context¶
A dynamic {{> (expr) }} key is evaluated against the context and used to resolve the partial.
Template
Context
Partials
greeting:
Output
dynamic-key-with-inner-whitespace-resolves-identically¶
Whitespace immediately inside a dynamic partial key's parentheses is optional: '{{> ( which ) }}' renders identically to '{{> (which) }}' above.
Template
Context
Partials
greeting:
Output
Source fixture: partials/basic-rendering.json