Templetor's _find_file method should be available to contributed template support code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
web.py |
New
|
Undecided
|
Unassigned |
Bug Description
Most template engines by themselves do not support looking up templates without specifying an extension. Some of the patches that solve this for contributed template engine support code uses code similar to web.template.
For reference, _find_file currently looks like this:
def _findfile(self, path_prefix):
p = [f for f in glob.glob(
p.sort() # sort the matches for deterministic order
return p and p[0]
If this is fixed, it would simplify fixes for these two tickets:
https:/ /bugs.launchpad .net/webpy/ +bug/252232 /bugs.launchpad .net/webpy/ +bug/525127
https:/