How to enable a method in template of google-app-engine
问题 the method is: def printa(x): return x the response is: self.response.out.write(template.render(path, {'printa':printa})) the html is: {{ printa 'sss'}} I want to show 'sss' in my page , so how to do this , updated I create a templatetags folder, and 2 py file: templatetags |--------__init__.py |--------tags.py in tags.py is: #from django import template from google.appengine.ext.webapp import template register = template.Library() def printa(): return 'ssss' register.simple_tag(printa) the