Compiling an app to a single binary - possible?

ilya-stromberg ilya-stromberg-2009 at yandex.ru
Sun Nov 17 12:16:58 PST 2013


On Sunday, 17 November 2013 at 18:40:34 UTC, Jacek Furmankiewicz 
wrote:
> It is possible to import an entire folder and subfolders of 
> assets? (e.g. static HTML with all of its pieces, i.e. CSS, 
> JSS. etc)

Are we talking about Vibe.d? Yes, it's possible:
http://vibed.org/docs

shared static this()
{
	auto router = new URLRouter;
	router.get("*", serveStaticFiles("./public/"));

	listenHTTP(new HTTPServerSettings, router);
}


More information about the Digitalmars-d-learn mailing list