#1564 Convert templates to use dotted-name dispatch

v1.0.0
closed
General
nobody
2015-08-20
2011-02-24
No

Currently, we have a routine that hits every tool and 'overlays' its templates directory onto the Jinja2 search path. This makes it difficult to determine by looking at the code where a template lives. Change the Jinja2 template loader so that it uses explicit lookup via dotted name (e.g. forgeblog.templates.foo) -- see the Genshi code in TG for an example of how to do this.

Alternatively, use the Pyramid approach of package:path, e.g. forgeblog:templates/foo.html -- whichever is easier.

Discussion

  • Rick Copeland - 2011-03-07
    • labels: --> pycon
     
  • Rick Copeland - 2011-03-14
    • status: open --> in-progress
    • assigned_to: Rick Copéland
    • size: --> 2
    • milestone: backlog --> mar-17
     
  • Rick Copeland - 2011-03-14
    • status: in-progress --> closed
     

Log in to post a comment.