HTMX.jl

Using Julia to write https://htmx.org
Author joshday
Popularity
6 Stars
Updated Last
3 Months Ago
Started In
January 2023

HTMX

Usage

<div>
  <script src="https://unpkg.com/htmx.org@1.8.5"></script>

  <button hx-post="/clicked" hx-swap="outerHTML">
    Click Me
  </button>
</div>
  • In Julia, you would write:
using Cobweb: Page, h
using HTMX

node = HTMX.hx(h.button("Click Me"), post="/clicked", swap="outerHTML")

h.div(HTMX.CDN(), node)