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:
parent
6c824edd38
commit
2585333c71
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue