Sergey Martynoff wrote:
you can now use full, nested
expressions as arguments to subs/method calls.  e.g.

    [% add(a+5, b < 10 ? c : d + e*5) %]

You won't believe how hard it was to get that working!  <ahem/>
I just hope it makes up for my recent crapness in some small way  :-)

Wow! That is really great! I wonder how did you get it working :) I will
surely take a look at the sources.

I noticed the flurry of CVS activity earlier today and saw this. (I was very 
excited.) I almost commented about it on the list, but figured I might steal 
Andy's thunder (or resurrection miracle if you prefer). ;)

From Changes:
"I'm embarrassed to admit that it was a one line change that could (and should) have 
been made long ago, if only I had realised just how trivial it was."

I think the change might have been in Parser.yp:
-args:      args term               { push(@{$_[1]}, $_[2]); $_[1]        }
+args:      args expr               { push(@{$_[1]}, $_[2]); $_[1]        }

I didn't look very hard, though, and I could be entirely wrong here.

Anyhow, I want to say THANK YOU for this Andy. This feature will be VERY nice. 
No expressions had definitely been an annoying thorn in my side on occasion. 
Thanks for taking the time to push this release out the door as well.

-- Josh

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to