Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2602 closed enhancement (wontfix)

Pluggable Templating System Proposal

Reported by: coderanger@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

This is a proposal to allow for each plugin to declare what templating system it uses. The idea is to not invalidate all plugins written in between now and the switch to Kid (currently scheduled for 0.11).

The idea has two parts:

  1. A new extension point called ITemplateSystemProvider.
  2. A class variable in each componenet called __templatesystem__.

To maintain backwards compatibility, if not present, __templatesystem__ would have an implied default of 'clearsilver'.

Each system provider would produce a list of schemes it is responsible for, and a function to be called before running process_request(), allowing the system to initialize any internal states needed, as well as place any needed data into to Request structure.

This is still very loosely defined in my head, so please post any better ideas you might have.

Attachments (0)

Change History (4)

comment:1 by anonymous, 18 years ago

Version: 0.9.3devel

comment:2 by coderanger, 18 years ago

Please direct all comments about this to the trac-dev mailing list.

comment:3 by Noah Kantrowitz (coderanger) <coderanger@…>, 18 years ago

Resolution: wontfix
Status: newclosed

Since Genshi is awesome, this is somewhat useless now.

comment:4 by Christian Boos, 18 years ago

Milestone: 0.11

clearing milestone, as it's a wontfix

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.