Edgewall Software

Opened 17 years ago

Closed 17 years ago

#204 closed enhancement (fixed)

Decoupling template instantiation from TemplateLoader.load

Reported by: njmurphy@… Owned by: cmlenz
Priority: minor Milestone: 0.5
Component: Infrastructure Version: 0.4.4
Keywords: template loading Cc:

Description

I think it would be helpful to factor out the creation of template objects from TemplateLoader?.load. This way, subclasses could implement alternative instantiation logic for whatever kind of templates they might be expected to load. This would handle cases where a callback is insufficient -- for example, when a template class constructor has a different argument list. I've attached a patch to implement this, which is very straightforward.

Attachments (1)

make_tmpl.patch (1.2 KB) - added by njmurphy@… 17 years ago.

Download all attachments as: .zip

Change History (2)

Changed 17 years ago by njmurphy@…

comment:1 Changed 17 years ago by cmlenz

  • Resolution set to fixed
  • Status changed from new to closed

Applied enhanced version of your patch in [811]. Thanks!

Note: See TracTickets for help on using tickets.