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.
这是我在 index.jade 中的内容。是的,我正在使用 express.js
extends layout block content h1 Invoices: != partial("invoice")
这与我在每个 Jade/Express 教程中看到的一致。但我得到“参考错误:部分未定义”。任何想法为什么?
使用include,不带引号(此示例来自玉文档)
include
users = [{ name: 'Tobi', occupation: 'Ferret' }] each user in users .user include invoice
invoice您的“部分”模板在哪里。
invoice
Jade 最新版本不支持分部。您可能正在关注过时的教程。请在此处阅读翡翠文档