玉石块内可以有块吗?

时间:2013-07-10 05:46:37

标签: pug template-engine

我可以拥有layout.jade文件:

h1 Layout File  
 block content

然后是index.jade文件:

extends layout
.span4.whatever
p some code goes here
block another-code-block

然后是第三个thirdfile.jade文件:

extends index
.row-fluid
a.poo a.boo
这不起作用。也没有扩展布局。有没有办法实现这个目标?

1 个答案:

答案 0 :(得分:0)

是的有效

布局

 h1 Layout File  
 block content  //this is block content

索引

extends layout //extend layout..
block content  //... at the block "content"
    .span4.whatever
    block asdasd  //this is block asdasd

Thirdfile

extends index //extend index
block asdasd //at block "asdasd" (so it replaces asdasd and everything in "asdasd")
    .span5.whatever