Web Programming in D

Martyn martyn.developer at googlemail.com
Tue May 21 09:25:16 UTC 2024


On Tuesday, 21 May 2024 at 06:54:35 UTC, Sergey wrote:
> ..
> Recently htmx is gaining some popularity as well, which is not 
> supported by D currently afaik.
> ..

In my own words -- htmx is a javascript library designed to avoid 
writing javascript. htmx supports many typical client-side tasks 
for you by using the `hx-...` attributes inside your html.


htmx is very good. It has simplified my work A LOT.
In one of my projects, my javascript was reduced from 1000 lines 
to less than 100... and most of the javascript that remained was 
more layout than data.

So it does not need to be "supported by D" -- all the server-side 
does is return html code (with htmx) and thats it! It is language 
independent!

Using Vibe.d and Diet could easily make your html pretty and 
organised.

https://htmx.org


More information about the Digitalmars-d mailing list