how to render booleans? #185
Replies: 2 comments 8 replies
-
Wontache renders As far as I can tell, the spec does not prescribe exactly what to do with booleans, other than that any data should be coerced to string. That might be on purpose, in order to allow implementations some freedom and ease. |
Beta Was this translation helpful? Give feedback.
-
that's not consistency, let the consistency here goes after the
template will be useless but exception wont be thrown as currently mine does for non-mustache implementation-specific means implicit. my proposition is to make it explicit - choose something, empty strings or |
Beta Was this translation helpful? Give feedback.
-
for example,
template:
data:
output:
with the instance option:
output:
other variants?
Beta Was this translation helpful? Give feedback.
All reactions