how to enable a method in tamplate of google-app-engine..

Posted by zjm1126 on Stack Overflow See other posts from Stack Overflow or by zjm1126
Published on 2010-05-16T01:47:24Z Indexed on 2010/05/16 1:50 UTC
Read the original article Hit count: 229

the mothed is :

def printa(x):
    return x

the reponse 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 ,

thanks

© Stack Overflow or respective owner

Related posts about google-app-engine

Related posts about python