Tell me what is the difference between them, there was a feeling that we include static elements that do not change, and in the blocks that are extendend, we use changing content using block.

1 answer 1

The main difference between includes and extends is that the first complements the content, and the second changes it.

includes used to add the contents of one jade file to another; in fact, it allows you to add a piece of code from one file to another in the specified location.
This is convenient, for example, when you need to supplement the content of any page with new content, which other pages do not need.

extends allows you to add content and override the contents of blocks that are re-declared.
This is convenient in the case when for several pages it is necessary to output the same block, but with different contents.