[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
1 changed files with 4 additions and 1 deletions

View File

@ -382,7 +382,10 @@ END
block.call
tab_down
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
# Characters that need to be escaped to HTML entities from user input