Commit 3b47fddc by Chris Jerdonek

Sketched out how to implement Renderer.get_associated_template().

parent 3caf64c8
......@@ -262,7 +262,13 @@ class Renderer(object):
TODO: document this.
"""
# TODO: implement this.
# TODO: implement this as follows:
#
# (1) call self.locator.make_template_name(obj)
# (2) call self.locator.get_director(obj)
# (3) call self.locator.locate_path() with template_name argument
# and enlarged search_dirs.
# (4) call self.read(), and return the result.
raise NotImplementedError()
def _render_string(self, template, *context, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment