Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (23 sloc) 1.022 kb

Templating Options

TurboGears has a very simple and flexible template system located at :mod:`tg.render`. Which is a tiny wrapper around :mod:`pylons.templating` to provide dotted template lookup support.

Built in renderers

We currently support the following template engines out of the box.

All you need to do to use any one of these template engines is to add it to the list of renderers to prepare in


and then specify that you want to use that particular engine in the @expose declaration:

def foo(self, *args, **kwargs)

We have docs on some of the specifics of each of these template engines:

Writing your own render function

Jump to Line
Something went wrong with that request. Please try again.