Hi,
A common issue is to specify attributes with the special characters - : . @ fom htmx, Alpine.js or Datastart.
This issue is covered by #141, but another possibility that I think has not been discussed is using Unicode chars, for example:
from htpy import button, configure, form
configure(
attribute_renaming={
"ˉ": "-",
"ꓽ": ":",
"ᐧ": ".",
"ᵒ": "@",
}
)
form(
id="",
xˉdata="",
xˉonꓽreportˉsuccessᐧwindow="",
hxˉpost="",
hxˉtarget="",
hxˉswap="",
hxˉindicator="",
hxˉdisabledˉelt="",
hxˉonꓽhtmxꓽresponseˉerror="",
)
button(
id="",
type="",
class_="",
ꓽdisabled="",
ᵒclick_prevent="",
)
It's harder to write, but easier to read. It's compact and generic.
Hi,
A common issue is to specify attributes with the special characters
- : . @fom htmx, Alpine.js or Datastart.This issue is covered by #141, but another possibility that I think has not been discussed is using Unicode chars, for example:
It's harder to write, but easier to read. It's compact and generic.