RejectedSoftware Forums

Sign up

Linking CSS and javascript

Hi,

I can't seem to figure out why my external stylesheets and javascript aren't being found (I keep getting 404)

My paths are the same as what dub creates.

I've tried
../styles/style.css
./styles/style.css
/public/styles/style.css

I've even tried adding a route of /styles/ or ./styles/ or ../styles/*

I guess I'm lost. :(

Re: Linking CSS and javascript

Sorry, nevermind. I missed this line router.get("*", serveStaticFiles("./public/"));

Re: Linking CSS and javascript

Sorry to be a burden, but now I can't figure out how to grab temporary files that are uploaded to the server.

Re: Linking CSS and javascript

Am 07.10.2013 04:25, schrieb Mike:

Sorry to be a burden, but now I can't figure out how to grab temporary files that are uploaded to the server.

Check out the uploader example in the vibe.d folder. The
req.files[fieldname].tempPath contains the full path to the temporary
file.

Re: Linking CSS and javascript

Sweet that works. I finally get it.

Thank you!