Skip to content

Does the spec indictate how collections and other values should be rendered? #183

Closed Answered by jgonggrijp
dpeterson-git asked this question in Q&A
Discussion options

You must be logged in to vote

How to render collections is left implementation-defined:

Data should be coerced into a string (and escaped, if appropriate) before
interpolation.

That being said, null should interpolate as the empty string:

- name: Basic Null Interpolation
desc: Nulls should interpolate as the empty string.
data: { cannot: null }
template: "I ({{cannot}}) be seen!"
expected: "I () be seen!"
- name: Triple Mustache Null Interpolation
desc: Nulls should interpolate as the empty string.
data: { cannot: null }
template

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dpeterson-git
Comment options

Answer selected by dpeterson-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants