title: Using dictionaries in Mako templates
body: <p>Instead of passing variables to a template like so:</p>
  
  <pre><code>template.render(var1='hello', var2='world')
  </code></pre>
  
  <p>How can I pass a dictionary to the template and have it render in the same manner</p>
  
  <pre><code>vars = {'var1': 'hello', 'var2': 'world'}
  </code></pre>
  
  <p>so in the template I can display the variables as normal:</p>
  
  <pre><code>${var1} ${var2}
  </code></pre>
  
  <p>I don't want any extra code in the template so I was thinking of using the Context object somehow, but I have hit a brick wall. Any ideas?</p>