- return self.template.django_template.render(RequestContext(request, context))
- return self.template.django_template.render(Context(context))
+ page_about_to_render_to_string.send(sender=self, node=node, request=request, extra_context=context)
+ string = self.template.django_template.render(RequestContext(request, context))
+ else:
+ page_about_to_render_to_string.send(sender=self, node=node, request=request, extra_context=context)
+ string = self.template.django_template.render(Context(context))
+ page_finished_rendering_to_string.send(sender=self, string=string)
+ return string