On Tue, Mar 1, 2011 at 2:00 PM, Sean McAfee <[email protected]> wrote:
> On Tue, Mar 1, 2011 at 1:56 PM, Sean McAfee <[email protected]> wrote: > >> On Tue, Mar 1, 2011 at 1:53 PM, Sean McAfee <[email protected]> wrote: >> >>> For a pure-TT solution, you could use a temporary variable: >>> >>> [% temp = BLOCK; FILTER lc; "XXX"; END; END; IF temp == "xxx"; ... %] >>> >>> >> Of course I meant to write "FILTER lower" here. >> > > ...And as it turns out the surrounding BLOCK/END is not necessary. Didn't > know that until I tried it just now. > > That's a little better. Pity lc and kin aren't vmethods. -- Check out my LEGO blog at http://www.brickpile.com/ View my photos at http://flickr.com/photos/billward/ Follow me at http://twitter.com/williamward
_______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
