Friday, May 27, 2011

Re: nested template tags

On May 26, 9:21 am, Andreas Rammhold <andreas+dja...@rammhold.de>
wrote:
> Heya,
> I'm not 100% sure if this solves the problem

I'm 101% sure it doesn't.

> for you (or if it's even
> intended to do what you want) but:
>
> {% with old_i=i %}
>     <a href="?{{ current_qstring|qstring_set:'page={{ old_i }}' }}">{{ i }}</a>
> {% endwith %}

Except for the useless aliasing of 'i', how is this different from the
OP's snippet exactly ?

> Haven't tried that yet but could be worth a shot.

http://en.wikipedia.org/wiki/Programming_by_permutation

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment