From: Armin Ronacher Date: Sun, 24 Jan 2010 13:29:26 +0000 (+0100) Subject: Improved finalize documentation. X-Git-Tag: 2.3~39 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=d9ea26e79ff21f522e78ce76fde5c1ad53c4745a;p=jinja2.git Improved finalize documentation. --HG-- branch : trunk --- diff --git a/jinja2/environment.py b/jinja2/environment.py index 8983123..2f72ecc 100644 --- a/jinja2/environment.py +++ b/jinja2/environment.py @@ -152,8 +152,9 @@ class Environment(object): undefined values in the template. `finalize` - A callable that finalizes the variable. Per default no finalizing - is applied. + A callable that can be used to process the result of a variable + expression before it is output. For example one can convert + `None` implicitly into an empty string here. `autoescape` If set to true the XML/HTML autoescaping feature is enabled.