title: Access <%def>s in included mako file
body: <p>I am currently implementing a feature in a Flask application. I have multiple parent mako files which includes the same child mako file.</p>
  
  <pre><code># parent.mako
  ...
  &lt;%def name="title()"&gt;${page_title}&lt;/%def&gt;
  &lt;%include file="child.mako"/&gt;
  ...
  
  
  # child.mako
  &lt;h1&gt;${title()} Discussion&lt;/h1&gt;
  </code></pre>
  
  <p>Basically, I am trying to pass the <code>title()</code> into the child.mako. However, the def block does not seem to render in the included file. Can anyone else give me a solution? I hope it will be simple and easy.</p>