It's now possible to create weak references to template contexts.

--HG--
branch : trunk
diff --git a/CHANGES b/CHANGES
index 775b709..3a05bca 100644
--- a/CHANGES
+++ b/CHANGES
@@ -32,6 +32,8 @@
 
 - implemented a bytecode cache system.  (:ref:`bytecode-cache`)
 
+- the template context is now weakref-able
+
 Version 2.0
 -----------
 (codename jinjavitus, released on July 17th 2008)
diff --git a/jinja2/runtime.py b/jinja2/runtime.py
index 9b2c3a5..bb5d9fd 100644
--- a/jinja2/runtime.py
+++ b/jinja2/runtime.py
@@ -61,7 +61,7 @@
     :class:`Undefined` object for missing variables.
     """
     __slots__ = ('parent', 'vars', 'environment', 'exported_vars', 'name',
-                 'blocks')
+                 'blocks', '__weakref__')
 
     def __init__(self, environment, parent, name, blocks):
         self.parent = parent