From d9ea26e79ff21f522e78ce76fde5c1ad53c4745a Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sun, 24 Jan 2010 14:29:26 +0100 Subject: [PATCH] Improved finalize documentation. --HG-- branch : trunk --- jinja2/environment.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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. -- 2.26.2