部分没有定义在翡翠

这是我在index.jade。 是的,我正在使用express.js

extends layout block content h1 Invoices: != partial("invoice") 

这与我在每个Jade / Express教程中看到的相符。 但是我得到“参考错误:部分未定义”。 任何想法为什么?

翡翠最新版本不支持partials。 你可能会跟随过时的教程。 请在这里阅读玉文档

使用include ,不需要引号(这个例子来自玉文档 )

 users = [{ name: 'Tobi', occupation: 'Ferret' }] each user in users .user include invoice 

invoice是您的“部分”模板。