Django Book 翻译
菜单>:
TOC
返回
原文:
* If you need to get the content of the block from the parent template, the ``{{ block.super }}`` variable will do the trick. This is useful if you want to add to the contents of a parent block instead of completely overriding it.
翻译:
* 如果需要获得父模板中代码块的内容,可以使用 ``{{ block.super }}`` 变量。如果只想在上级代码块基础上添加内容,而不是全部重载,该变量就显得非常有用了。
备注:
译者: