pugjs(jade) template engine loading css file

Masiar picture Masiar · Oct 31, 2011 · Viewed 58.9k times · Source

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?

Answer

Ya Zhuang picture Ya Zhuang · Oct 31, 2011

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