/ Published in: Ruby

URL: http://www.mail-archive.com/[email protected]/msg02189.html
Fortunately all it takes to make double quotes the global default for attribute wrappers in HAML is to change one line in the installed gem source.
If you're on a Mac, remember to sudo when you edit the source of an installed gem.
Expand |
Embed | Plain Text
# On line 63 of haml-2.1.0/lib/haml/engine.rb, change :attr_wrapper => "'", # to :attr_wrapper => "\"",
Comments

You need to login to post a comment.
This is not the best way to make Haml use double quotes. Instead, use the following:
Haml::Template.options[:attr_wrapper] = '"'
. If you're using Haml in a Ruby on Rails application, add this to RAILS_ROOT/config/environment.rb, and then restart your application to see the change.