I had similar problems with Express 3.0.0rc2, not including CSS. I'm not sure if this is a Jade or Express issue, but when I add a working style.css
, it works just like this:
link(rel='stylesheet', href='/stylesheets/style.css')
However, if I delete this line and insert, say, Twitter Bootstrap css files, I get strange HTML output.
link(rel='stylesheet', href='/bootstrap/css/bootstrap.min.css')
This only works if I have something like this:
link(rel='stylesheet', href='/bootstrap/css/bootstrap.min.css') link(rel='stylesheet', href='/bootstrap/css/bootstrap-responsive.min.css') link(rel='stylesheet', href='/stylesheets/style.css')
Why? I donβt know. :-) I assume that this has something to do with parsing and HTML output.
source share