玉多层次继承

时间:2013-06-07 14:57:28

标签: pug multiple-inheritance

我遇到了jade多级继承问题。我的代码是:

layout.jade:

head
  block head
    include head
body
  block body

index.jade:

extends layout
block append body
  block content
include modal1.jade
include modal2.ajde

content.jade:

extends index
block append head
  script
block content
  p This is my content
当我编译这段代码时,我得到的问题是,脚本中包含的所有代码都会被重复3次。我在这里做错了吗?

0 个答案:

没有答案