Replies: 3 comments
-
Wontache produces the empty string because it interprets the whole template as a single interpolation tag with {"data":{"text":"{\n '}}hello{{': 'x'\n}"},"templates":[{"name":"","text":"{{}}hello{{}}"}]} Not meaning to defend the behavior though, just clarifying. I see no use in empty tags, so I don't think it needs specifying, but I'll leave this open for a while so different opinions can be heard. |
Beta Was this translation helpful? Give feedback.
-
mine leaves them alone,
|
Beta Was this translation helpful? Give feedback.
-
oke, now i think that there should be a parse exception - empty clause have no use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Consider the case:
I found a lot of varying behavior in mustache implementations.
hello
. The empty tags appear to be ignored.Perhaps it is out of scope for the spec to dictate what happens on empty tags? That being said I do think Wontache's behavior is incorrect regardless.
Beta Was this translation helpful? Give feedback.
All reactions