Replies: 2 comments 1 reply
-
I am not against it. I mean, I don't look forward to lots of users completely abandoning the practice of explicit closing tags and only writing Other than that, I only see reasons to allow it, even if not very strong:
It would not break anything for end users. It would be a breaking change for implementers, though only by limiting the extent to which they can pass the specs. I think it should still be an optional extension for that reason, or be postponed to 2.0. Questions: How about How about Then again, How about parents and blocks? Blocks have no reason to get very long, but parents could potentially get long with dynamic names. |
Beta Was this translation helpful? Give feedback.
-
I have similar thoughts as @jgonggrijp . One thing that is currently nice about Mustache is there is not a lot of multiple ways to do things with syntactical sugar. Its actually one of the things I despise about YAML (as well as handlebars on the templating side) is that there are many multiple ways to do things compared to say JSON. You could argue the dotted path is sugar but it actually has different meaning than nesting sections. The other is based on my experience of using SEXP like for HTML generation is that it gets very confusing even with proper indentation as often the start tag is very far away. In fact I often see HTML designers put in things like <!-- navigation -->
<div class="nav">
....
</div>
<!-- /navigation --> The reason is that even But Mustache is being used more for stuff other than HTML so I can see some value in it where the templating content is less verbose like HTML. |
Beta Was this translation helpful? Give feedback.
-
This is especially relevant as we look at filters which may become very verbose. I'll start the conversation with a proposal where any end tag could be replaced with {{/}}. For example, today:
Can optionally be:
Beta Was this translation helpful? Give feedback.
All reactions