Closed bigeasy closed 9 years ago
Not crazy about this because it consumes an attribute name. In fact, it might be better to allow the library designer to specify whether a tag is bodiless. That makes things more like HTML.
Keep in mind that this is messy in HTML as well. The script
tag is almost always used without a body these days, but it can take one, so you must close it. It's not unheard of.
However we do have the recurse
directive which is bodiless. We have else
directives that end if
directives. We've make this a feature of the language, bodilessness, so it makes sense to expose it to library authors.
Hey!
<% block % end %>
Then you can have.
<% end % else %>
And so on? Certainly...
<% recurse % end %>
Is not super obnoxious.
Why isn't this in the diary? But...
Not going to implement this. Using curly braces now.
Or maybe you use a slash like
<% block %/>
. No rush since this is only exposed to the tag library. I do like the verbose usage, though.