]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Document the fact that the {% module %} directive requires a RequestHandler.
authorBen Darnell <ben@bendarnell.com>
Sun, 18 Aug 2013 23:20:48 +0000 (19:20 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 18 Aug 2013 23:21:09 +0000 (19:21 -0400)
Closes #880.

tornado/template.py

index 341e07c62fda8290bf5d9d4cc16d074ede9661c4..77fd579e31d5dc76a83f10ae71e77cc7e901b2b9 100644 (file)
@@ -169,6 +169,10 @@ with ``{# ... #}``.
 
         {% module Template("foo.html", arg=42) %}
 
+    ``UIModules`` are a feature of the `tornado.web.RequestHandler`
+    class (and specifically its ``render`` method) and will not work
+    when the template system is used on its own in other contexts.
+
 ``{% raw *expr* %}``
     Outputs the result of the given expression without autoescaping.