Conformance Examples 0.1.0 — Render: this-identifier¶
this-renders-current-context¶
{{ this }} renders the entire current context as compact JSON (unescaped, as it is not a string primitive).
Template
Context
Output
this-unescaped-renders-current-context¶
{{{ this }}} renders the entire current context as compact JSON without HTML escaping.
Template
Context
Output
this-slash-this-resolves-this-property¶
{{ this/this }} resolves the 'this' property at the root of the current context via the JSON Pointer formed by stripping the leading 'this'.
Template
Context
Output
this-dot-this-resolves-this-property¶
{{ this.this }} resolves the 'this' property at the root of the current context via dot notation after stripping the leading 'this.' prefix.
Template
Context
Output
dot-alone-renders-current-context¶
{{ . }} is a synonym for {{ this }} and renders the entire current context (unescaped, as it is not a string primitive).
Template
Context
Output
dot-slash-name-resolves-property¶
{{ ./name }} strips the leading './' and dispatches '/name' as an RFC 6901 pointer.
Template
Context
Output
this-dot-nested-uses-dot-notation¶
{{ this.user.city }} strips the leading 'this.' and resolves 'user.city' as dot notation.
Template
Context
Output
this-slash-nested-uses-rfc6901¶
{{ this/user/city }} strips the leading 'this' and dispatches '/user/city' as an RFC 6901 pointer.
Template
Context
Output
this-with-null-context-renders-null¶
When the context is null, {{ this }} renders the literal 'null' (matching the existing null-context convention).
Template
Output
thisfoo-is-not-a-this-keyword¶
Identifiers that merely start with the letters 'this' but are not followed by '.' or '/' or end-of-identifier are unaffected; 'thisfoo' is dispatched as the dot-notation key 'thisfoo'.
Template
Context
Output
Source fixture: render/this-identifier.json