vibed: how to use pure HTML instead of template engine?
    Chris via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Wed May  6 12:46:19 PDT 2015
    
    
  
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.
    
    
More information about the Digitalmars-d-learn
mailing list