我有一个看起来像这样的布局:
body
header.l-header.l-site-width
block header
// include the block with the name body form whatever file that uses layout
.l-body.l-site-width
block body
footer.l-footer.l-site-width
block footer
现在我没有在使用布局的文件中指定标题块,我想使用默认包含。
我试过了:
block header || "something else"
在最好的情况下:
block header || include ../partials/base/header
它不起作用,但不会引发错误。知道怎么做吗?