Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pugjs(jade) template engine loading css file

I've been searching in the examples on the GitHub but I couldn't find how to load a simple css file into my layout. My first thought was doing something like this link(href="my.css") but it seems it's not working at all. The href points to a correct location online (checked and working) thus maybe I'm forgetting something?

like image 569
Masiar Avatar asked Oct 31 '11 15:10

Masiar


2 Answers

try: link(rel='stylesheet', href='/stylesheets/style.css')

like image 73
Ya Zhuang Avatar answered Sep 19 '22 09:09

Ya Zhuang


I think you need to include the relationship. Try

link(rel='stylesheet', href='my.css')

like image 31
Ryan Gibbons Avatar answered Sep 21 '22 09:09

Ryan Gibbons