mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Explain special case of data-
and aria-
attributes (#1095)
This commit is contained in:
parent
d92a5aa83b
commit
0eb3cf6978
1 changed files with 13 additions and 1 deletions
14
REFERENCE.md
14
REFERENCE.md
|
@ -294,7 +294,19 @@ or using `true` and `false`:
|
|||
%input(selected=true)
|
||||
|
||||
This feature works only for attributes that are included in
|
||||
[`Haml::AttributeBuilder::BOOLEAN_ATTRIBUTES`](lib/haml/attribute_builder.rb).
|
||||
[`Haml::AttributeBuilder::BOOLEAN_ATTRIBUTES`](lib/haml/attribute_builder.rb),
|
||||
as well as `data-` and `aria-` attributes.
|
||||
|
||||
%input{'data-hidden' => false}
|
||||
%input{'aria-hidden' => false}
|
||||
%input{'xyz-hidden' => false}
|
||||
|
||||
will render as:
|
||||
|
||||
<input>
|
||||
<input>
|
||||
<input xyz-hidden='false'>
|
||||
|
||||
|
||||
<!-- The title to the next section (Prefixed Attributes) has changed. This
|
||||
<a> tag is so old links to here still work. -->
|
||||
|
|
Loading…
Reference in a new issue