4 ms·
I love that this lets you create custom elements! I think that's a big missing feature from HTMX (even though HTMX can already use custom elements). I'm workin
by spankalee 2y ago
I love that this lets you create custom elements! I think that's a big missing feature from HTMX (even though HTMX can already use custom elements).
I'm working on a somewhat similar system called Heximal. It focuses on adding full-fledged templating to the <template> element, and full declarative component definitions to HTML, plus some built-in custom elements like <h-var>, <h-out>, <h-scope>, <h-include>, and <h-fetch> that make HTML more of a declarative programming language.
A big difference from HTMX is that it doesn't rely on magic attributes, but instead adds full data-binding with rich expressions for any attribute or text content, and control flow, to <template>. And component definitions include defining properties, attributes, styles, etc.
These things are being proposed for HTML, so Heximal is somewhat of a polyfill for HTML from the future. Or it's a bit like Tangle or Curvenote.
https://github.com/elematic/heximal/ https://github.com/elematic/heximal/
- mdhb 2y agoI’m so glad you’re still working on this, I hadn’t seen any updates in the repo lately and wasn’t sure if you changed focus areas or something.
- spankalee 2y agoThanks. I'm working on a few things. I'll get back to Heximal soon!
- pickpuck 2y agoDoes it implement the proposed Declarative Custom Element spec with slice templating? https://github.com/EPA-WG/custom-element https://github.com/EPA-WG/custom-element
- spankalee 2y agoThere is no declarative custom element spec yet. Just a bunch of discussions.