|
Re: the "Cheetah files" (part 1): msg#00015python.cheetah
Mike Orr wrote: (...) It sounds like to do exactly what you'd want would require a newinfact the #for / #unless trick works just fine for my purposes that's why i posted it to the ML. #for could grow a section for "if list is empty", but we can't callyeah, where sequence is "naturally exhausted" else: block is called. And we don't want Python-lookalike directives behaving differently thanit would be definitely a bad thing. And actually implementing an "if empty" portion in #for this is something it could be implemented in version 2.0 of the template system. maving from python-like statemenet to a more rule-based machinery, like zope's TAL or mozilla's XUL: http://www.xulplanet.com/tutorials/xultu/templates.html but this really would distort cheetah philosophy a lot. having rules like #ifempty would look a bit strange. :) later, deelan ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Webware & Cheetah vs. PHP - performance comparision!, Geoff Howland |
|---|---|
| Next by Date: | What is going with __CheetahTemp files???, JZ |
| Previous by Thread: | Re: the "Cheetah files" (part 1), Mike Orr |
| Next by Thread: | Re: the "Cheetah files" (part 1), Mike Orr |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |