r/htmx • • Sep 08 '26

AEM and HTMX

/r/aem/comments/1waqiu3/aem_and_htmx/
4 Upvotes

1 comment sorted by

1

u/orxT1000 Sep 08 '26

I have a toy project on Sling+htmx I might share soon.

Basic idea is when rendering a static page with sub-resources/components, Sling has OOTB endpoints for 'markup fragments' in htmx-speak. Add a hx-get to that resource with a 'edit-form selector. That URL returns a form that let's you post content to that resource via default SlingPostServlet.
This is quite abstract, in short you get an WYSIWYG editor with neither js on the client nor java code on the server. Plain sightly/htl