Web Programming in D
Aravinda VK
mail at aravindavk.in
Thu May 23 05:37:30 UTC 2024
On Wednesday, 22 May 2024 at 18:37:34 UTC, aberba wrote:
> On Wednesday, 22 May 2024 at 16:22:42 UTC, Aravinda VK wrote:
>> On Tuesday, 21 May 2024 at 09:37:42 UTC, aberba wrote:
>>> [...]
>>
>> 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)
>
> Awesome. Interesting to know it works. Due to that statement, I
> never tried the live mode.
I think it is must have during development especially during
front-end development. Use the Diet cache feature during back-end
development to improve the compile speed.
>
> If I may ask, what other dub packages are you using?
Not many. `yxml`, `prometheus`, `d2sqlite3` and `dpq2` and a few
others.
More information about the Digitalmars-d
mailing list