Allow template filename to be given directly

Bug #372266 reported by Wichert Akkerman on 2009-05-05
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

It would be nice if it was possible to pass in a full template filename directly: grok.template("path/view.html"). I envision the behaviour to be something like this:

 * if the given filename has an extension use that
 * if no extension was given do the usual automatic detection
 * if a path is given, use that
 * if no path is given use the default path

i think we can put this to won't fix as the template = TemplateFile('path to file name') pattern is officially supported for a while now. the issue never got updated though.

Changed in grok:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers