Ticket #1680 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Fix TG2 default Template config setup

Reported by: mramm Assigned to: lmacken
Priority: normal Milestone: 2.0
Component: TurboGears Version: trunk
Severity: normal Keywords:
Cc:

Description

TG2 is currently hard-wired to use Genshi, use the default from the config instead.

Also make sure we are passing in the right options to the template prepare call in the decorated controller (which lives in pylons!)

Also document how to switch the default. See:

http://wiki.pylonshq.com/display/pylonsdocs/Using+Other+Template+Languages

for more information.

Attachments

Pylons-expose-default-template.patch (0.7 kB) - added by lmacken on 03/17/08 14:55:09.
Pylons-expose-default-template.patch
tg2-default-template-config.patch (3.2 kB) - added by lmacken on 03/20/08 08:58:55.
An updated patch that obsoletes all of the others in this ticket.

Change History

03/17/08 09:29:28 changed by lmacken

  • owner changed from anonymous to lmacken.
  • status changed from new to assigned.

03/17/08 14:55:09 changed by lmacken

  • attachment Pylons-expose-default-template.patch added.

Pylons-expose-default-template.patch

03/17/08 14:55:39 changed by lmacken

The above patches are my first attempt at fixing this issue.

03/20/08 08:58:55 changed by lmacken

  • attachment tg2-default-template-config.patch added.

An updated patch that obsoletes all of the others in this ticket.

03/20/08 09:00:36 changed by lmacken

Since the expose decorator has moved out of Pylons and into tg2, the tg2-default-template-config.patch now contains all of the necessary changes, and the Pylons-expose-default-template.patch is now unnecessary.

03/23/08 17:18:41 changed by mramm

  • status changed from assigned to closed.
  • resolution set to fixed.

Patch applied in r4294