title: How to use webapp2.uri_for in a template?
body: <p>webapp2 says <a href="http://webapp-improved.appspot.com/api/webapp2.html#webapp2.uri_for" rel="nofollow">webapp2.uri_for</a> is a "standalone uri_for version that can be passed to templates."  Sounds perfect.  When I pass it to the Django template renderer as follows:</p>
  
  <pre><code>import webapp2
  from google.appengine.ext.webapp import template
  self.response.out.write(template.render(path,
      { 'webapp2': webapp2 }))
  </code></pre>
  
  <p>and put this in the template</p>
  
  <pre><code>Please &lt;a href="{{ webapp2.uri_for('contact') }}"&gt;send us 
  your feedback&lt;/a&gt;.
  </code></pre>
  
  <p>app engine 1.7.0 says</p>
  
  <blockquote>
    <p>TemplateSyntaxError: Could not parse the remainder: '('contact')' from 'webapp2.uri_for('contact')'</p>
  </blockquote>
  
  <p>If I put instead</p>
  
  <pre><code>Please &lt;a href="{{ webapp2 }}"&gt;send us your feedback&lt;/a&gt;.
  </code></pre>
  
  <p>it shows</p>
  
  <blockquote>
    <p>module%20%27webapp2%27%20from%20%27/usr/local/google_appengine/lib/webapp2/webapp2.pyc%27%</p>
  </blockquote>
  
  <p>so I know webapp2 is getting into the template.</p>
  
  <p>How do I get this thing to work?</p>