这是 nav.jade 文件
each link in data
h5.home-link: a(href="#{ url }")
这是我的 data.json 文件
{
"links": [
{ "url": "index.html", "pg-title": "Home" },
{ "url": "Wooden_Wall_Panelling.html", "pg-title": "Wooden Wall Panelling" },
{ "url": "Wooden_Partitioning.html", "pg-title": "Wooden Partitioning" },
{ "url": "Wardrobe_MDF_Shutters.html", "pg-title": "Wardrobe MDF Shutters" },
{ "url": "MDF_Ceiling_Patterns.html", "pg-title": "MDF Ceiling Patterns" },
{ "url": "Wooden_Grills.html", "pg-title": "Wooden Grills" }
]
}
错误(当 Jade 尝试编译文件时):
无法读取未定义的属性“长度”。
错误指向第一行,即数据中的每个链接。
我在这里做错了什么?
我正在使用 Harp 服务器。