Django Book 翻译
菜单>:
TOC
返回
原文:
* ``{% extends variable %}`` uses the value of ``variable`` . If the variable evaluates to a string, Django will use that string as the name of the parent template. If the variable evaluates to a ``Template`` object, Django will use that object as the parent template.
翻译:
* ``{% extends variable %}`` 用变量 ``variable`` 的值来指定父模板。如果变量是一个字符串,Django会把字符串的值当作父模板的文件名。如果变量是一个 ``Template`` 对象,Django会把这个对象当作父模板。
备注:
译者: