Hi, i'm new with haml and i figured out my first problem: Why this: %image#grass{:height => "29.32", :width => "38.64", "xlink:href" => image_path('grass.svg')} render properly: <image height='29.32' id='grass' width='38.64' xlink:href='/assets/ grass.svg'></image>
But when added the "/" self-closing character: %image#grass{:height => "29.32", :width => "38.64", "xlink:href" => image_path('grass.svg')}/ render badly: <image height='29.32' id='grass' width='38.64' xlink:href='/assets/ grass.svg'> Another question which i already solved but may be the bad way: How to declare xml/svg doctype? Currently i'm using plain text: <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/ Graphics/SVG/1.1/DTD/svg11.dtd"> Is there a way, using Ruby on rails to do this more DRY? Thanks. -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to haml@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.