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

前端 未结 3 1275
名媛妹妹
名媛妹妹 2020-12-30 02:37

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

3条回答
  •  执念已碎
    2020-12-30 03:22

    Haml does indeed order attributes alphabetically, and this is indeed a consequence of Ruby's parser. In the future, attributes may be ordered in document order as much as possible, but that's not likely to happen until Haml 2.2 or later.

提交回复
热议问题