vibed: how to use pure HTML instead of template engine?
Chris via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed May 6 06:51:10 PDT 2015
On Wednesday, 6 May 2015 at 13:50:04 UTC, Chris wrote:
> On Wednesday, 6 May 2015 at 13:32:48 UTC, Suliman wrote:
>> By default vibed use Diet. Maybe it's cool, but for me it's
>> easier to write in pure HTML. What is the best way to do it?
>
> You want to serve html files instead of templates, right? It
> should be something like
>
> router.get("*", serveStaticFiles("./public/"));
>
> Put your html stuff into the folder "public".
Cf. http://vibed.org/docs#http-routing
More information about the Digitalmars-d-learn
mailing list