webapp2 says webapp2.uri_for 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:
import webapp2
from google.appengine.ext.webapp import template
self.response.out.write(template.render(path,
{ 'webapp2': webapp2 }))
and put this in the template
Please <a href="{{ webapp2.uri_for('contact') }}">send us
your feedback</a>.
app engine 1.7.0 says
TemplateSyntaxError: Could not parse the remainder: '('contact')' from 'webapp2.uri_for('contact')'
If I put instead
Please <a href="{{ webapp2 }}">send us your feedback</a>.
it shows
module%20%27webapp2%27%20from%20%27/usr/local/google_appengine/lib/webapp2/webapp2.pyc%27%
so I know webapp2 is getting into the template.
How do I get this thing to work?