1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

[Haml] Add an error message to discourage people from using haml_tag with =.

This commit is contained in:
Nathan Weizenbaum 2009-02-22 00:32:32 -08:00
parent a4f0471c5b
commit 8a5ae5ba6d

View file

@ -382,7 +382,10 @@ END
block.call block.call
tab_down tab_down
haml_concat "</#{name}>" haml_concat "</#{name}>"
nil <<MESSAGE
<h1><code>haml_tag</code> outputs directly to the Haml template.
Disregard its return value and use the <code>-</code> operator.</h1>
MESSAGE
end end
# Characters that need to be escaped to HTML entities from user input # Characters that need to be escaped to HTML entities from user input