askonomm / htmt

A templating library with native AOT support for .NET projects.
9 stars 0 forks source link

Add `data-htmt-` as an alternative to `x:` #26

Closed askonomm closed 3 weeks ago

askonomm commented 3 weeks ago

Having a x: attribute prefix is all fine and good in editors that don't do strict HTML parsing, but in IDE's like the one JetBrains makes, that results in a lot of red on the screen indicating that it's not right. So, in order to avoid that problem, and to be more aligned with standard HTML, having a data-htmt- prefix would be good to have. It's more verbose, yes, but it's fully valid HTML.