| commit | 335b87a84695854f3af03ada3131c55fc59d4a31 | [log] [tgz] |
|---|---|---|
| author | Armin Ronacher <armin.ronacher@active-4.com> | Sun Sep 21 17:08:48 2008 +0200 |
| committer | Armin Ronacher <armin.ronacher@active-4.com> | Sun Sep 21 17:08:48 2008 +0200 |
| tree | 4adc3de2079b3c2701e9ea9c27c56a78c8770b65 | |
| parent | 5799605a1e6d0a944ad98d30f8a2dd46d8aaef9c [diff] [blame] |
Fixed a bug in constant folding of keyword arguments to filter calls. Thanks noskolo. --HG-- branch : trunk
diff --git a/jinja2/nodes.py b/jinja2/nodes.py index 034becf..ec2ed3e 100644 --- a/jinja2/nodes.py +++ b/jinja2/nodes.py
@@ -464,6 +464,9 @@ """A key, value pair for keyword arguments where key is a string.""" fields = ('key', 'value') + def as_const(self): + return self.key, self.value.as_const() + class CondExpr(Expr): """A conditional expression (inline if expression). (``{{