diff --git a/docs/signals.rst b/docs/signals.rst index 7f2d4d97..eeed7343 100644 --- a/docs/signals.rst +++ b/docs/signals.rst @@ -63,7 +63,7 @@ to the template:: recorded.append((template, context)) template_rendered.connect(record) try: - yield templates + yield recorded finally: template_rendered.disconnect(record)