Skip to content

Conformance Examples 0.1.0 — Render: unresolved-reference

top-level-identifier-miss-reports-kb-5005

A bare identifier that the context struct does not provide resolves to null and reports a KB-5005 UnresolvedReference soft failure.

Template

x={{ missing }}

Context

{}

Output

x=null

nested-pointer-miss-reports-kb-5005

A sub-pointer under a resolvable parent, but whose final segment the parent does not provide, resolves to null and reports a KB-5005 UnresolvedReference soft failure.

Template

{{ a/b }}

Context

{
    "a": {}
}

Output

null

unresolved-identifier-in-condition-is-falsy

An unresolved identifier used as a block condition reports KB-5005 and is treated as falsy, so unless renders its body.

Template

{{#unless missing }}yes{{else}}no{{/unless}}

Context

{}

Output

yes

Source fixture: render/unresolved-reference.json