Skip to content

Conformance Examples 0.1.0 — Render: torture-unterminated-at-eof

unterminated-open-at-eof-renders-literal

A bare {{ opener that reaches end-of-input without a matching }} is rewritten by the pre-pass (leading { escaped) and renders as the original literal text, not a parse error.

Template

prefix {{ foo

Output

prefix {{ foo

unterminated-triple-open-at-eof-renders-literal

A triple-mustache {{{ opener that reaches end-of-input without a matching }}} is rewritten by the pre-pass and renders as the original literal text.

Template

{{{ foo

Output

{{{ foo

unterminated-block-open-at-eof-renders-literal

A {{#each opener with no matching }} that reaches end-of-input is rewritten by the pre-pass and renders as the original literal text.

Template

before {{#each x

Output

before {{#each x

unterminated-comment-at-eof

A {{! comment opener with no matching }} that reaches end-of-input is rewritten by the pre-pass and renders as the original literal text.

Template

{{! foo

Output

{{! foo

unterminated-raw-at-eof

A {{{{ raw-block opener with no matching }}}} that reaches end-of-input is rewritten by the pre-pass and renders as the original literal text.

Template

{{{{ raw

Output

{{{{ raw

Source fixture: render/torture-unterminated-at-eof.json