ruricolist / spinneret

Common Lisp HTML5 generator
MIT License
369 stars 26 forks source link

Attributes with no value #53

Closed zen-wq closed 3 years ago

zen-wq commented 3 years ago

Some frameworks (cough ZURB Foundation cough) make use of custom :data-* attributes with no value. I wanted to make a PR but couldn't think of a good way to represent it. t should mean "true" for other purposes, empty string is a valid value too. The only choice I see is a special symbol in spinneret package to indicate that there's no value.

zen-wq commented 3 years ago

Ok, there's a list of *boolean-attributes*. So, we just need a way for users to update it. Maybe just export it like *unvalidated-attribute-prefixes*?