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.
1 つのファイル内から別の Jade ファイルを参照する:
include ../widget
HTML を次のようにレンダリングします。
<include>../widget</include>
具体的には、Scalatra を使用します。私は何を間違っていますか?
Scalate Jade は JavaScript Jade とは異なるため、タグは同じではありません。次のように、ファイル名全体を参照する必要があります。
- include("../widget.jade")