title: Pass variable from called Mako template to inherited template
body: <p>I am using CherryPy with Mako templates. I am trying to work out how to pass aruguments from the initial call (in this example <code>title</code>):</p>
  
  <pre><code>class Landing(object):
      def index(self):
          tmpl = lookup.get_template("index.html")
          return tmpl.render(title="Hello World")
      index.exposed = True
  </code></pre>
  
  <p>to <code>index.html</code>:</p>
  
  <pre><code>&lt;%inherit file="base.html"/&gt;
  &lt;%def name="title()"&gt;$(title)&lt;/%def&gt;
  this is the body content
  </code></pre>
  
  <p>and then to the inherited <code>base.html</code> template:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8"&gt;
          &lt;title&gt;$(self.title())&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;h1&gt;$(parent.title())&lt;/h1&gt;
          ${self.body()}
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I've tried <code>self.title</code> and <code>parent.title</code> and neither work. How does I pass the variable from the initial call?</p>