templates
| ....a.html
|.....admin
|..... index.html
|..... b.html
Google App Engine テンプレートでは、これを使用して index.html の b.html を拡張できます。
{% extends 'b.html' %}
しかし、index.html で a.html を拡張する方法。
ありがとう
templates
| ....a.html
|.....admin
|..... index.html
|..... b.html
Google App Engine テンプレートでは、これを使用して index.html の b.html を拡張できます。
{% extends 'b.html' %}
しかし、index.html で a.html を拡張する方法。
ありがとう
テンプレートごとに拡張を 1つだけ持つことができます。これは、C# や Java などの OOP 言語における単一継承のようなものです。
This questionには、テンプレートをレイアウトし、適切なテンプレート継承スキームを作成するための良いアイデアを提供する答えがあります