开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜