vibed: how to use pure HTML instead of template engine?

Suliman via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu May 7 01:09:49 PDT 2015


Is next example is enough to serv simple index.html page?

void setupServer()
{
	auto router = new URLRouter;
	// add other routes here
	router.get("*", serveStaticFiles("public/"));

	auto settings = new HTTPServerSettings;
	listenHTTP(settings, router);
}

After it's run I open localhost:8080 but browser say that can't 
connect to the page.


More information about the Digitalmars-d-learn mailing list