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

[Haml] Tweak the reference a bit.

This commit is contained in:
Nathan Weizenbaum 2009-07-05 01:51:26 -07:00
parent 6c824edd38
commit 2585333c71

View file

@ -302,6 +302,12 @@ You can, however, use both syntaxes together:
%a(title=@title){:href => @link.href} Stuff
HTML-style attributes can be stretched across multiple lines
just like hash-style attributes:
%script(type="text/javascript"
src="javascripts/script_#{2 + 7}")
#### Attribute Methods
A Ruby method call that returns a hash