Closed muja closed 10 years ago
Dup of an old ticket. Use - block content ""
In HAML, the end of a "block" is denoted by a undent. If there is no indent, there is no undent, so no closing tag :)
The solution is to use a variant that doesn't need a closing tag (e.g. {% content "" %}
), or to make sure that the tag has a content.
Okay, but how come a single .block
is rendered with a closing tag to <div class="block"></div>
HTML tags are handled differently; HAML knows how HTML is supposed to work, however it knows nothing about the scripting language (Twig in this case).
renders to
instead of
This works however:
renders to
Workaround: