node.js - 铁刨 meteor Jade 的产量及含量

标签 node.js meteor pug iron-router

我想使用{{>yield "aside"}}{{#contentFor "aside"}}{{/contentFor}}在带有 meteor 和铁路由器的 Jade 中,但我得到了这个错误:

Jade syntax error: unexpected token "indent" <runJavaScript-59>:73:14: Cannot read property 'head' of undefined (at fileModeHandler)

这是怎么回事? jade 中与这些标签等效的空格键的正确语法是什么?

非常感谢!

最佳答案

我明白了

+contentFor("aside")
    p Hello World

关于node.js - 铁刨 meteor Jade 的产量及含量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31807056/

相关文章:

sql-server - 如何使用 nodejs 的 mssql 包调用 SQL Server 标量函数?

javascript - 从 Angular Controller 获取数据并将其显示在 html View 上出现错误

node.js - 返回服务器错误 Jade not finding isLoggedIn undefined

javascript - 2018 年在 Typescript 中导入/需要没有 @types 的 nodejs 模块

node.js - 在路由路径中搜索公共(public)文件夹

javascript - Phaserio 动态 Sprite 创建

javascript - 在 Meteor 中显示私有(private)子目录中的图像

javascript - 排行榜示例,与 'selected_name' 返回值混淆

javascript - 将数据从 Node 传递到 Jade ?

coding-style - Jade : declare a variable over multiple lines