【发布时间】:2018-09-25 03:48:36
【问题描述】:
大家好
我遇到了这个错误
PUG:UNEXPECTED_BLOCK
帕格版本:5.6.0
使用 Gulp 进行编译
template.pug
//- Vars
- var siteName = "LandingPage" ;
block Vars
doctype html
html(lang="en")
include head.pug
body
include header
block content
include footer
include modals
include scripts
index.pug
extends template/template
//- Vars
block vars
- var pageTitle=" Home ";
- var pageDes="HTML App Landing Page Template";
//- Content
block content
main
include sections/content_section
有什么帮助吗?
注意:我试过了
- 删除 block vars 在 template.pug 但仍然给我同样的错误
- 删除所有 cmets 均根据此 Answer 形成,但相同
【问题讨论】: