HAML 不会将 _ 更改为 -
HAML doesn't change _ to -
我有包含这一行的 haml 文件
.class{ aria_hidden: "true" }
并在编译 haml 之后创建
<div class="class" aria_hidden="true">
为什么 haml 不将 _
更改为 -
?
查看您的 HAML 配置文件:hyphenate_data_attrs: true;
。
#hyphenate_data_attrs
If set to true, Haml will convert underscores to hyphens in all Custom Data Attributes As of Haml 4.0, this defaults to true.
我有包含这一行的 haml 文件
.class{ aria_hidden: "true" }
并在编译 haml 之后创建
<div class="class" aria_hidden="true">
为什么 haml 不将 _
更改为 -
?
查看您的 HAML 配置文件:hyphenate_data_attrs: true;
。
#hyphenate_data_attrs
If set to true, Haml will convert underscores to hyphens in all Custom Data Attributes As of Haml 4.0, this defaults to true.