From c97aab3876f264998c0398087f398b3108ed6c80 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Thu, 15 Mar 2007 14:27:22 +0100 Subject: [PATCH] [svn] small doc changes --HG-- branch : trunk --- docs/src/frameworks.txt | 21 +++++++++++++++++++++ docs/src/index.txt | 4 ---- 2 files changed, 21 insertions(+), 4 deletions(-) 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 -- 2.26.2