Revision: 5705
Updated Code
at March 28, 2008 11:29 by cczona
Updated Code
%p{ :title=> 'stupid example', :style=>'font-weight: bold'}
Revision: 5704
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 28, 2008 11:28 by cczona
Initial Code
%p{ :title=> 'for example', :style=>'font-weight: bold'}
Initial URL
https://elitefrontier.org/elgg/rordev/weblog/92.html
Initial Description
"When using haml, an HTML tag is represented using %tagname, but in the case of an HTML tag with attributes, the representation is %tagname{:attribute => value}. It turns out there must be no whitespace between %tagname and {:attribute => value}. This was the source of a lot of errors when I was trying to write haml forms, since the error message was the cryptic: Illegal Nesting: Nesting within a tag that already has content is illegal."
Initial Title
Haml 'nesting within a tag' error
Initial Tags
rails, ruby
Initial Language
Ruby