Django Book 翻译
菜单>:
TOC
返回
原文:
At that point, the template engine notices the three ``{% block %}`` tags in ``base.html`` and replaces those blocks with the contents of the child template. So, the title weve defined in ``{% block title %}`` will be used, as will the ``{% block content %}`` .
翻译:
此时,模板引擎注意到 ``base.html`` 中的三个 ``{% block %}`` 标签,并用子模板的内容替换这些 block 。因此,引擎将会使用我们在 ``{ block title %}`` 中定义的标题,对 ``{% block content %}`` 也是如此。
备注:
译者: