class TemplateHandler(webapp.RequestHandler):
    def get(self):
        greeting = "hello"

        template_values = {
            'greeting': greeting,
        }

        path = os.path.join(os.path.dirname(__file__),
'dir_details.html')
        self.response.out.write(template.render(path,
template_values))

And this is the dir_details.html:

<html>
<body>
<p>Render template</p>
{{ greeting }}
</body>
</html>

The template prints as html:

<�html> <�body> <�p>Render template<�/p> {{ greeting }} <�/body> <�/
html>


Any suggestions why this is hapenning?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to