From: David Wilemski Date: Wed, 24 Aug 2011 03:14:08 +0000 (-0400) Subject: Fixed typo in template documentation X-Git-Tag: v2.1.0~44^2~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F342%2Fhead;p=thirdparty%2Ftornado.git Fixed typo in template documentation --- diff --git a/tornado/template.py b/tornado/template.py index 29c61c421..4a88999ed 100644 --- a/tornado/template.py +++ b/tornado/template.py @@ -57,7 +57,7 @@ interesting. Syntax for the templates:: Unlike most other template systems, we do not put any restrictions on the expressions you can include in your statements. if and for blocks get -translated exactly into Python, do you can do complex expressions like:: +translated exactly into Python, you can do complex expressions like:: {% for student in [p for p in people if p.student and p.age > 23] %}
  • {{ escape(student.name) }}