ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# `block` When a template uses inheritance and if you want to print a block multipletimes, use the `block` function: <table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1 2 3 4 5</pre></div></td><td class="code"><div class="highlight"><pre>&lt;title&gt;{% block title %}{% endblock %}&lt;/title&gt; &lt;h1&gt;{{ block('title') }}&lt;/h1&gt; {% block body %}{% endblock %} </pre></div></td></tr></table> See also [*extends*](#), [*parent*](#)