From: Ben Darnell Date: Sun, 18 Aug 2013 23:20:48 +0000 (-0400) Subject: Document the fact that the {% module %} directive requires a RequestHandler. X-Git-Tag: v3.2.0b1~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdbebacb8e1d9c6c1c7ad0be7ceee15467d1b1d7;p=thirdparty%2Ftornado.git Document the fact that the {% module %} directive requires a RequestHandler. Closes #880. --- diff --git a/tornado/template.py b/tornado/template.py index 341e07c62..77fd579e3 100644 --- a/tornado/template.py +++ b/tornado/template.py @@ -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.