On Wednesday, 6 May 2015 at 18:52:41 UTC, Suliman wrote:
auto html = someStringActions();
res.writeBody(cast(ubyte[])html);

Thanks, but how to attach to html css file? Now page is loading, but do not handle css that also placed in this folder.

CSS should be exported automatically when you use serveStaticFiles. I don't understand what exactly you mean. If you send a string

<html>
 ...

</htm>

the browser automatically detects the CSS file you link to and will get it from vibe.d If the CSS is embedded in the HTML (via <style></style> the browser will recognize this.

Reply via email to