Re: Enhance enclose tag template process

2006-12-03 Thread limodou
presentational purposes (such as the date formatter) and > efficient data generation (such as loops). > > Don > Pyif is just a custom tag which I want to implement( and indeed I'v finished it), and I think most of you misunderstand my idea, what I want is "enhance enclose tag

Re: Enhance enclose tag template process

2006-12-03 Thread Don Arbow
Here's a few things to think about when you start putting lots of logic code into your template. What happens when your boss comes to you and says he wants the contents of that page in another format like xml or some corporate legacy reporting format? All your extraction logic is buried in

Re: Enhance enclose tag template process

2006-12-03 Thread Alan Trick
roject > and I don't need to change the django core code. And the problem I > mentime is that django cann't support the encolse tag has extra info, > but not aimed provide python expression into django. And if django > support extra info in enclose tag, users like me ca

Re: Enhance enclose tag template process

2006-12-02 Thread limodou
o support extra info in enclose tag, users like me can make other powerful custom tag. So my subject is not "Introduce python if statement into django" but "Enhance enclose tag template process", so don't misunderstand my idea. OK? If you don't like the idea of pyif, yo

Re: Enhance enclose tag template process

2006-12-02 Thread James Bennett
On 12/2/06, limodou <[EMAIL PROTECTED]> wrote: > 1. The expression can be a python expression, so you don't need > ifequal, ifnotequal, and the expression will be more flexiable. > 2. It will support elif Personally, I'd be -1 on this; the template system is deliberately not meant to re-create th

Enhance enclose tag template process

2006-12-02 Thread limodou
I'v made a ticket at http://code.djangoproject.com/ticket/3090 But I hope someone can consider this advise is reasonable and accept my patch. What I want is mainly to create a new custom tag, pyif, how to use it? There is a example: {% load utiltags %} {% expr range(5) as count %} {% for i in co