pugjs(jade) template engine loading css file


Question

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?

1
32
12/31/2015 7:43:57 AM

Accepted Answer

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

81
10/31/2011 4:07:13 PM

I think you need to include the relationship. Try

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


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon