Clarification on functions as context #166
-
According to the spec (from the section YAML, not mentioned in interpolation YAML):
So the following invocation:
Would render out as (at least in JavaScript anyways) Thanks for the clarification. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You interpreted the spec correctly, at least in the sense that the returned value is used for interpolation. That template, given those data, will render `` (the empty string) rather than Lines 104 to 108 in 982aa9b What do you mean by "sub-optimal"? What would be more optimal in your opinion? |
Beta Was this translation helpful? Give feedback.
You interpreted the spec correctly, at least in the sense that the returned value is used for interpolation. That template, given those data, will render `` (the empty string) rather than
null
, because of this spec:spec/specs/interpolation.yml
Lines 104 to 108 in 982aa9b
What do you mean by "sub-optimal"? What would be more optimal in your opinion?