无效的缩进,您可以使用制表符或空格,但不是两个玉
我有以下的玉代码工作正常
div.container h3.entry-title(style='margin-top:25px;') #{result.post_title} div p.text-left.pst <i class="fa fa-calendar"></i> #{result.post_date} div.panel !{result.post_content} -if(typeof userType !== 'undefined' && userType=='admin') a.btn.red.marginTop(href='/ebs' ) Cancel div.page-footer div.page-footer-inner Copyright Copyright All rights reserved.
但是当我尝试插入像下面的语句,它给我的缩进错误
div.container h3.entry-title(style='margin-top:25px;') #{result.post_title} div -if(result.post_date!='-1') p.text-left.pst <i class="fa fa-calendar"></i> #{result.post_date} div.panel !{result.post_content} -if(typeof userType !== 'undefined' && userType=='admin') a.btn.red.marginTop(href='/ebs' ) Cancel div.page-footer div.page-footer-inner Copyright Copyright All rights reserved.
在编辑器中查找选项以突出显示标签或空格。 或者只是删除所有的缩进,并重新添加它只使用标签或只有空格仔细。
Pug(formerly Jade)
模板工作在相同的缩影。您需要在
pug
文件中selectspace or tab
。 你不能同时使用两个。
从编辑器中select常见缩进,并从这个奇怪的错误
- 通过Node.js中的REST API传输整个Javascript对象的最佳方法
- 弹性search索引模板的创build
- 一个语言或库中创build的jwt能否被解码和validation?
- 主干 – 错误:无法find模块“主干”
- 使用openshift nodejs应用程序接收“SSL_connect returned = 1 errno = 0 state = SSLv3读取服务器hello A:sslv3警报握手失败”
- 使用zeromq与Python与Java的node.js性能
- Javascript minifier支持ES2017asynchronous/等待function
- 如何在Mongoose.find中只select一个数组的元素
- 如何在nodejs中同步连接到mongodb