Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从一个内部引用另一个 Jade 文件:
include ../widget
像这样渲染 HTML:
<include>../widget</include>
特别是使用 Scalatra。我究竟做错了什么?
Scalate Jade 与 JavaScript Jade 不同,因此标签也不相同。您必须完整引用文件名,如下所示:
- include("../widget.jade")