I'm having a problem with the :suppress_eval option -- somewhat related to 
this issue: 
https://groups.google.com/forum/#!searchin/haml/suppress_eval/haml/Gx-A9wtMc6Q/CXgjqLwVhsUJ

If a tag's attribute contains a hash character (#) — such as used in 
specifying a hexadecimal CSS property in a style attribute — the attribute 
is stripped out.
 
Example:

irb(main):012:0> Haml::Engine.new("%h2{:style => 'color: red'}", 
:suppress_eval => true).render
=> "<h2 style='color: red'></h2>\n"

irb(main):013:0> Haml::Engine.new("%h2{:style => 'color: #f00'}", 
:suppress_eval => true).render
=> "<h2></h2>\n"


I'm running Haml 4.0.3. Am I missing something?


-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/haml.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to