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

Make it clear that attribute methods must precede literal attributes.

This commit is contained in:
Nathan Weizenbaum 2008-10-02 22:52:37 -07:00
parent 34500a1074
commit b8091363eb

View file

@ -184,6 +184,9 @@ $LOAD_PATH << dir unless $LOAD_PATH.include?(dir)
#
# <sandwich bread='whole wheat' delicious='true' filling='peanut butter and jelly' />
#
# Note that the Haml attributes list has the same syntax as a Ruby method call.
# This means that any attribute methods must come before the hash literal.
#
# ===== Boolean Attributes
#
# Some attributes, such as "checked" for <tt>input</tt> tags or "selected" for <tt>option</tt> tags,