lambda-fairy / maud

:pencil: Compile-time HTML templates for Rust
https://maud.lambda.xyz
Apache License 2.0
2.09k stars 137 forks source link

Disallow int literals in attribute values #415

Closed lambda-fairy closed 8 months ago

lambda-fairy commented 8 months ago

Allowing int literals in attribute values is potentially confusing, as foo=123usize is allowed but foo=usize123 is not.

Int literals in attribute names are still useful for htmx (e.g. hx-target-404) so we continue allowing that.