I'm trying to write an application for Google Appengine. I want to use
jinja2.

The filesystem looks like this:

/runninglog
    main.py
    -/templates/
        base
        content
        footer
        menu

Here is the code related to jinja I have:

import os
import jinja2

jinja_environment = jinja2.Environment( loader =
jinja2.FileSystemLoader([os.path.dirname(__file__)+'/templates',
os.path.dirname(__file__)]))

template = jinja_environment.get_template('base',)
template_values = {
                                'menu_label': 'Running Log',
                                'title' : 'Hello World',
}
self.response.out.write(template.render(template_values))

I think the problem is that I am not pointing jinja at all my
templates. How do I do this?





-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" 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/pocoo-libs?hl=en.

Reply via email to