dlang website design
Sönke Ludwig via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jun 24 15:31:10 PDT 2017
Am 25.06.2017 um 00:16 schrieb Wulfklaue:
> On Saturday, 24 June 2017 at 20:29:23 UTC, Sönke Ludwig wrote:
>> /++ dub.sdl
>> name "webserver"
>> dependency "vibe-d:http" version="~>0.7.31"
>> module main;
>> import vibe.core.core;
>> import vibe.http.fileserver;
>> import vibe.http.server;
>> void main()
>> listenHTTP(new HTTPServerSettings, serveStaticFiles("./"));
>> $ dub main.d
>> Although of course vibe.d is not included with the compiler, this
>> works out of the box for a standard DMD/LDC installation.
> No it does not...
I've got to admit that I typed this from the top of my head without
actually running it, and of course I got the syntax wrong. The first
line must be "/+ dub.sdl:", with a colon at the end.
The error message is off, because, after a refactoring, the colon that
should end the first line is also accepted on any later line within the
comment. I'll prepare a PR to fix this.
More information about the Digitalmars-d