how to extends the parent html page on google app engine
templates
| ....a.html
|.....admin
|..... index.html
|..... b.html
in google app engine templates, i can use this to extends b.html in index.html:
{% extends 'b.html' %}
but how to extends a.html in index.html.
thanks开发者_JAVA技巧
You can only have one extends per template. It's like single inheritance in OOP languages like C# and Java.
This question has an answer that will give you some good ideas for laying out your templates and having a good template inheritence scheme
精彩评论