Mercurial > genshi > mirror
changeset 440:7884617bc941 trunk
Add stricter error handling to upgrade notes.
author | cmlenz |
---|---|
date | Wed, 04 Apr 2007 17:18:08 +0000 |
parents | 9f11c745fac9 |
children | 2755b06148b3 |
files | UPGRADE.txt |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/UPGRADE.txt +++ b/UPGRADE.txt @@ -10,6 +10,16 @@ leftover traces of the `template.py` file on the installation path. This is not necessary when Genshi was installed as a Python egg. +Handling of errors in template expressions is now more strict. In +particular, it is no longer possible to reference an undefined +variable without an exception being raised. The previous error +handling let expressions get away with minor typos, which would +result in subtle bugs that were hard to find. The functions +`defined()` and `value_of()` are now available in all template +code; they can be used to test whether a specific variable is +defined at the top-level scope. Please refer to the template +language documentation for details. + Results of evaluating template expressions are no longer implicitly called if they are callable. If you have been using that feature, you will need to add the parenthesis to actually call the function.