Generally, you can find out how to use "script" tag in the official HAML documentation.
http://haml.hamptoncatlin.com/docs/rdoc/classes/Haml.html Quote: Brackets represent a Ruby hash that is used for specifying the attributes of an element. It is literally evaluated as a Ruby hash, so logic will work in it and local variables may be used. Quote characters within the attribute will be replaced by appropriate escape sequences. The hash is placed after the tag is defined. For example: %head{ :name => "doc_head" } %script{ 'type' => "text/" + "javascript", :src => "javascripts/script_#{2 + 7}" } is compiled to: <head name="doc_head"> <script src='/docs/rdoc/javascripts/script_9' type='text/javascript'> </script> </head> :Unquote Does this give you an idea? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
