Jinja2 is good and it has got clean extend behavior and a neat syntax it is also blazing fast..
On Sun, Feb 21, 2010 at 10:28 AM, Branko Vukelic <[email protected]>wrote: > 2010/2/21 6yf <[email protected]>: > > This works even without adding web.cond to template globals: > > <div class="$(sunny and 'yellow' or 'grey')">...</div> > > Oh. Now, that's a cool hack. Big thumbs up! I guess I have to brush my > Python up. :P > > > -- > Branko Vukelić > > http://foxbunny.tumblr.com/ > http://www.flickr.com/photos/16889...@n04/ > http://www.twitter.com/foxbunny > http://github.com/foxbunny > > -- > You received this message because you are subscribed to the Google Groups > "web.py" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected] <webpy%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/webpy?hl=en. > > -- Amazing wedding entrance viral video http://fotoroll.com/sv?q=jk%20wedding%20entrance%20dance%20Amazing%20wedding%20video -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
