span><span class="n">hello</span><span class="p">()</span><span class="cp">}</span><span class="x"></span></pre></div>
</div>
<p>If the <code class="docutils literal notranslate"><span class="pre">&lt;%def&gt;</span></code> is not nested inside of another <code class="docutils literal notranslate"><span class="pre">&lt;%def&gt;</span></code>,
it’s known as a <strong>top level def</strong> and can be accessed anywhere in
the template, including above where it was defined.</p>
<p>All defs, top level or not,