staticmatic

Haml - how do I force tag attributes to use double quotes only AND how do I order tag attributes the way I want?

一世执手 提交于 2019-11-30 06:47:09
I use staticmatic for templates I use later with PHP. There is an odd situation where some tag attributes have single quotes, while some have double quotation marks. I would like all of them to have double quotes exclusively (not that it matters I guess, but I want them like that!) For example, haml code: !!! XML %html{html_attrs('hr-HR')} %head %title Some title %meta{'http-equiv' => 'Content-Type', :content => 'text/html; charset=utf-8'}/ %meta{'name' => "description", :content => 'Some title - YO!'}/ = stylesheets = javascripts('test', :other) %body = yield produces following: <?xml version

Haml - how do I force tag attributes to use double quotes only AND how do I order tag attributes the way I want?

北战南征 提交于 2019-11-29 07:03:14
问题 I use staticmatic for templates I use later with PHP. There is an odd situation where some tag attributes have single quotes, while some have double quotation marks. I would like all of them to have double quotes exclusively (not that it matters I guess, but I want them like that!) For example, haml code: !!! XML %html{html_attrs('hr-HR')} %head %title Some title %meta{'http-equiv' => 'Content-Type', :content => 'text/html; charset=utf-8'}/ %meta{'name' => "description", :content => 'Some