Skip to content

Commit

Permalink
[Haml] Add an error message to discourage people from using haml_tag …
Browse files Browse the repository at this point in the history
…with =.
  • Loading branch information
nex3 committed Feb 22, 2009
1 parent a4f0471 commit 8a5ae5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/haml/helpers.rb
Expand Up @@ -382,7 +382,10 @@ def haml_tag(name, *rest, &block)
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
Expand Down

0 comments on commit 8a5ae5b

Please sign in to comment.