开发者

how to extends the parent html page on google app engine

开发者 https://www.devze.com 2023-01-06 01:26 出处:网络
templates ....a.html |.....admin |..... index.html |..... b.html in google app engine templates, i can use this to extends b.html in index.html:
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

精彩评论

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