lambda-fairy / maud

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

Allow colons in attribute names #395

Open Geordi7 opened 8 months ago

Geordi7 commented 8 months ago

HTMX (https://htmx.org/) requires the use of colons in attribute names for their recommended event handling (https://htmx.org/attributes/hx-on/). There is a deprecated form which does not require a colon.

Maud does not allow colons in attribute names and create various errors when they are present. Please modify the library to allow them.

RedPhoenixQ commented 8 months ago

194 has a similar issue and #393 and #396 are working solutions to the issue. I am currently using #393 in my personal project