Conformance Examples 0.1.0 — Render: each-index-key¶
at-foo-literal-property-via-dot-slash¶
{{ ./@foo }} reads a literal '@foo' property via RFC 6901 Pointer in the root context.
Template
Context
Output
at-foo-literal-property-via-this-dot¶
{{ this.@foo }} reads a literal '@foo' property via dot-notation Pointer in the root context.
Template
Context
Output
at-foo-literal-property-via-this-slash¶
{{ this/@foo }} reads a literal '@foo' property via RFC 6901 Pointer in the root context.
Template
Context
Output
at-index-outside-each-is-null¶
@index outside any {{#each}} block resolves to null.
Template
Context
Output
at-key-html-escaped¶
@key inside an object each is HTML-escaped when rendered with {{ }} interpolation.
Template
Context
Output
at-key-outside-each-is-null¶
@key outside any {{#each}} block resolves to null.
Template
Context
Output
at-key-unescaped-triple-mustache¶
@key inside an object each is emitted verbatim (unescaped) when rendered with {{{ }}} interpolation.
Template
Context
Output
at-unknown-is-null¶
An unrecognised @name identifier (forward-compat) renders as null.
Template
Context
Output
each-index-array-zero-based¶
@index inside an array {{#each}} renders the 0-based element index.
Template
Context
Output
each-index-inside-object-is-null¶
@index inside an object {{#each}} is null because objects iterate by key, not index.
Template
Context
Output
each-key-inside-array-is-null¶
@key inside an array {{#each}} is null because arrays iterate by index, not key.
Template
Context
Output
each-key-object-insertion-order¶
@key inside an object {{#each}} renders each key; keys are iterated in insertion order.
Template
Context
Output
each-parent-index-from-nested-each¶
{{ ../@index }} inside a nested {{#each}} reaches the outer each's @index.
Template
Context
Output
each-parent-key-from-nested-each¶
{{ ../@key }} inside a nested {{#each}} over an array reaches the outer each's @key (if the outer is an object each).
Template
Context
Output
Source fixture: render/each-index-key.json