次のように、同じフォルダーに 2 つの jade テンプレートがあります。
|__layout.jade
|__content.jade
そして、layout.jade は親テンプレートであり、content.jade はそれを継承しますlayout.jade
。
doctype 5
html(lang="en")
head
title= title
body
block content
の中にcontent.jade
extends layout
block content
h1 this is frome nested template
ただし、実行すると継承が機能せず、親テンプレートのコンテンツのみが表示されます
私のコードの何が問題なのですか?