Web Programming in D

Andrea Fontana nospam at example.org
Thu May 23 07:18:08 UTC 2024


On Wednesday, 22 May 2024 at 18:41:12 UTC, aberba wrote:
> On Wednesday, 22 May 2024 at 04:42:38 UTC, Andrea Fontana wrote:
>> On Tuesday, 21 May 2024 at 03:37:11 UTC, aberba wrote:
>>> 
>>> For backend only webdev, I see no issue with using vibe.d 
>>> besides not getting more options of third-party library for 
>>> cloud services in D.
>>>
>>> The major complaint was that vibe.d has a slow html 
>>> templating library (diet) but that was about it.
>>>
>>> These days, front-end libraries/frameworks ( react, angular, 
>>> vue, svelte) are often used anyways.
>>>
>>> I personally would consider vibe.d for backend only when 
>>> building "large" apps due to the von mentioned above.
>>
>> We successfully use serverino+parserino for html serving.
>>
>> Andrea
>
> Big fun of those two. I recently tried it and looks cool.
>
> Would you consider a templating system at some point? I would 
> love to be able to include header, footer, etc. in multiple 
> pages.

We use parserino as template system. You can write your own 
header.html footer.html etc and composing them using the dom 
easily.

Or easier: build a page with footer header and everything else 
and then replace the contents and/or remove the parts you don't 
need.

Eg: 
https://github.com/trikko/parserino/blob/bcef3c11a106f03d578eaacf764547b287edb24d/examples/05_serve_html/source/app.d#L37

Andrea





More information about the Digitalmars-d mailing list