On Mon, 2007-03-05 at 10:31 +0100, Jens Diemer wrote: > Chris Moffitt schrieb: > > I've implemented a similar hierarchy for categories in Satchmo using > > elementtree. You can see my example here- > > http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/shop/templatetags/category_display.py > > But you have html code in your programm. (The <ul> und <li> Tags). I > don't want to put this in the programm code. All html thing should be > stored in the template. > > To generate a tree menu without a template is very easy ;)
It is not possible to satisfy everybody's wishes and always have both "no html in code" and "no full programming language in template system". We have chosen the latter, which sometimes means you have to compromise on the former. PHP, for example, does it the other way around. You might say that this situation could be handled "if only we had template recursion", but then there would be other cases which are not handled and before you know it, the template language is Turing complete. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---