Commit 6048bfdc authored by Tim Graham's avatar Tim Graham
Browse files

Added django.template.engine.Engine.render_to_string() docstring.

parent fd1e54b9
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -162,13 +162,11 @@ class Engine(object):
            template = Template(template, origin, template_name, engine=self)
        return template

    # This method was originally a function defined in django.template.loader.
    # It was moved here in Django 1.8 when encapsulating the Django template
    # engine in this Engine class. It's still called by deprecated code but it
    # will be removed in Django 1.10. It's superseded by a new render_to_string
    # function in django.template.loader.

    def render_to_string(self, template_name, context=None):
        """
        Render the template specified by template_name with the given context.
        For use in Django's test suite.
        """
        if isinstance(template_name, (list, tuple)):
            t = self.select_template(template_name)
        else: