Good time! Can you please tell me if nested inheritance is possible in Jade?

The problem is this: The layout file is the main markup. It defines a main block in which the necessary content will be inserted:

layout.jade

...код ...код block main ...код ...код 

The item file contains the markup of an independent structural block, it has block content .

item.jade

 ...код ...код block content ...код ...код 

In the main file through extends , layout.jade is connected, item.jade is inserted into its main block. Accordingly, some content also inserted into the content block.

index.jade

 extends layout block main include header extends item block content p Lorem ipsum dolor sit amet, consectetur adipisicing elit. include footer 

In the compiled file, only the item block with the Lorem ipsum paragraph remains, and the layout , header and footer missing. Perhaps I make a mistake in syntax? Or is nested inheritance impossible?

Thank you for the answers!

  • What is the most annoying, the documentation casually says that you can use the attached extension, but there are no examples :( - Furry Cat
  • Now supported by the extends directive. About the inherited nested inheritance can be read here . - VostokSisters

0