Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Pug 玉石多层次传承_Pug_Multiple Inheritance - Fatal编程技术网

Pug 玉石多层次传承

Pug 玉石多层次传承,pug,multiple-inheritance,Pug,Multiple Inheritance,我在多层次继承方面遇到了问题。我的代码在以下行: 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 b

我在多层次继承方面遇到了问题。我的代码在以下行:

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
当我编译这段代码时遇到的问题是,脚本中包含在head中的所有代码都会重复3次。我做错什么了吗