Replies: 1 comment
-
|
Closed.. for that we already have Hyperscript Fetch |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi community,
I've been working with HTMX and Hyperscript in my recent projects and I love the simplicity of it, once you get the concepts. But both projects are very different in syntax.
Would it be useful to unify both in a new project without modifying them too much?
My draft idea:
HMTL - Hypermedia Transport Layer
The custom attributes could be:
_hx for server interactions (htmx)
_hs for client interactions (hyperscript)
The Hyperscript syntax would not change, only the HTMX syntax. The idea is as follows:
STRAIGHT SYNTAX:
or using capitalized keywords like:
<div _hx="on CLICK .btn POST /user/{#username}/invoices SELECT .invoices TARGET #list"></div>VERBOSE SYNTAX:
..or maybe... just add a new attribute _hx to HTMX to allow having both projects separate.
Your opinion?
Beta Was this translation helpful? Give feedback.
All reactions