visionmedia/jade — Issue #490: not able to render .css 
Author: jhiraygit
Created: 2012-01-30 07:17:56+00:00
State: open

Hi visionmedia,

I have jade template looks like css files are not getting rendered.

I have following in template:

head
link(rel="stylesheet", href="../css/home.css", type="text/css",charset="UTF-8")
link(rel="stylesheet", href="../css/StyleSheet.css", type="text/css",charset="UTF-8")
body

with these settings I was able to see content of page without element properties defined for elements.

Then I copied these files to public/css folder and changed template to :

head
link(rel="stylesheet", href="/css/home.css", type="text/css",charset="UTF-8")
link(rel="stylesheet", href="/css/StyleSheet.css", type="text/css",charset="UTF-8")
body

after this change I see blank page.

My app.js has : app.use(express.static(__dirname + '/public'));

Do you see anything which is not correct?

Thank you.