警告:意外阻止“内容" [英] Warning: Unexpected block "content"
本文介绍了警告:意外阻止“内容"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
即使我正确处理了这些块,它们也没有被带入布局页面:
Even though I've got the blocks correctly addressed they aren't being brought into the layout page:
//- layout.jade
doctype html
html
head
title My Page
body
block content //- Main content goes here
//- index.jade
extends ./layout.jade
block title
title Article Title
block content
h1 My Article
此后我找到了答案,并认为应该记录下来以帮助他人...
I've since found the answer and think it should be documented to help others...
推荐答案
如果您在 layout.jade 中的块的同一行有注释 //-
,您将收到该错误.
You will get that error if you have a comment //-
on the same line as the block in your layout.jade.
这篇关于警告:意外阻止“内容"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文