Partial Not Defined in Jade

本秂侑毒 提交于 2019-12-03 06:46:47

Jade newest version doesn't support partials. You might be following outdated tutorials. Please read up on jade documentation here

Use include, without quotes (This example is from the jade documentation)

users = [{ name: 'Tobi', occupation: 'Ferret' }]

each user in users
  .user
    include invoice

Where invoice is your "partial" template.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!