My studying notebook

2009/05/08

App Engine TemplateSyntaxError

5/08/2009 06:17:00 AM Posted by Unknown , 1 comment
from google.appengine.ext.webapp import templatedef HtmlRender(self, template_file, template_values): temp = os.path.join(os.path.dirname(__file__), 'templates/'+template_file)self.response.out.write( template.render(temp, template_values) )template_values ={ 'url' : self.request.url, 'my_dictionary' : { 'item1' : 1, 'item2' : 2} }url: {{ url }}{% for key, value in my_dictionary.items...