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
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
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
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
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
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