pugjs(jade)模板引擎加载css文件 [英] pugjs(jade) template engine loading css file
本文介绍了pugjs(jade)模板引擎加载css文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在GitHub的示例中搜索,但我找不到如何加载一个简单的css文件到我的布局。我的第一个想法是做这样的链接(href =my.css)
但似乎它不工作。
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?
推荐答案
try: link(rel ='stylesheet',href ='/ stylesheets / style.css')
这篇关于pugjs(jade)模板引擎加载css文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文