I’m using Haml from the command-line to do a basic transform of one .haml file to .html, like this:
> haml input.haml output.html
Thing is, this produces single-quotes around attributes in the resulting HTML. So how to I pass in the :attr_wrapper => '"' option from the command-line?
Alternatively, can I just globally set :attr_wrapper to a double-quote?
What I’ve ended up doing is adding the following to haml/exec.rb at ~line 302
This adds a dedicated option to do what I need.
I’m not quite sure what the rationale for using single-quotes by default is; double-quotes would make a more sensible default, I would have thought. Having said that, they are perfectly valid.
I submitted this update as a patch and it’ll be included in version 2.4