Web Programming in D
Aravinda VK
mail at aravindavk.in
Wed May 22 16:22:42 UTC 2024
On Tuesday, 21 May 2024 at 09:37:42 UTC, aberba wrote:
>
> With that said, front-end requires a lot of iteration of the
> elements and styling and it'll be frustratingly slow working
> with a compiled language for that. Languages like like Go,
> Python, D, ruby are mainly suitable for backend. It doesn't
> make sense to not use these JavaScript libraries for front-end.
> React, vue, angular and svelte will be the top 4. I don't see
> why you'd want an alternative you'd have to wait for
> compilation after every single change (that is even if htmx was
> ported to D).
I am using Vibe.d for one of the application that I am currently
working on. During development, I use the Live feature of Diet
library so that I need not compile again for the HTML changes in
diet file.
```
dub build --d-version=DietUseLive
```
After changing the diet template, browser refresh will show the
latest changes (No need to run `dub build`).
**Note**: Please note, Live mode will not work as expected if lot
of embeded D code used inside the diet template. Using Live mode
is not recommended for production use (Refer:
https://github.com/rejectedsoftware/diet-ng/?tab=readme-ov-file#experimental-html-live-mode)
More information about the Digitalmars-d
mailing list