From: Armin Ronacher Date: Thu, 15 Mar 2007 13:27:22 +0000 (+0100) Subject: [svn] small doc changes X-Git-Tag: 2.0rc1~431 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c97aab3876f264998c0398087f398b3108ed6c80;p=jinja2.git [svn] small doc changes --HG-- branch : trunk --- diff --git a/docs/src/frameworks.txt b/docs/src/frameworks.txt index d0d3af9..5423966 100644 --- a/docs/src/frameworks.txt +++ b/docs/src/frameworks.txt @@ -29,5 +29,26 @@ something like this: template_engine='jinja') +TurboGears +---------- + +Integrating Jinja into TurboGears works pretty much the same. + +Basically all you have to do is to edit the application configuration file at +``application/config/app.cfg`` and change `global.tg.defaultview` and +provide the jinja options: + +.. sourcecode:: ini + + [global] + tg.defaultview = 'jinja' + jinja.loader.searchpath = '/path/to/templates' + +Because of the limitations of the configuration file there is currently no way +to configure jinja correctly. This problem does not exist with pylons since you +can pass any python object to the baker configuration system. We're currently +looking for solutions to this problem. + + .. _TurboGears: http://www.turbogears.org/ .. _pylons: http://www.pylonshq.com/ diff --git a/docs/src/index.txt b/docs/src/index.txt index aa24641..64085e3 100644 --- a/docs/src/index.txt +++ b/docs/src/index.txt @@ -37,12 +37,8 @@ Welcome in the Jinja documentation. Undocumented So Far ------------------- -- Debugging Templates - - i18n for Developers - Writing Custom Loaders -- Jinja in TurboGears / django? - - Changelog / Authors