Nodejs express xTemplate template problem

  node.js, question

Want to use nodejs express and xTemplate to separate the front and back ends

Then the code is implemented as follows:

clipboard.png
Nodejs runs js

The template page is as follows:

clipboard.png

clipboard.png

clipboard.png

clipboard.png

The following problems occurred:
When I don’t refer to it in layout
{{extend (“./header/header”)}} and {{extend (“./footer/footer”)}}
There is no problem with page loading. The page cannot be loaded after referencing, and has been requesting to load.

{{extend (“./header/header”)}} changed to {{include (“./header/header”)}}

{{{block (“body”)}}}

{{extend (“./footer/footer”)}} changed to {{include (“./footer/footer”)}}