Hi,

You are right of course. Django built-in tags do manage; I wonder how.
Perhaps time to look at the source-code for some of the Django tags.

Cheers,

--Tim

-----Original Message-----
From: django-users@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of limodou
Sent: donderdag 16 februari 2006 11:10
To: django-users@googlegroups.com
Subject: Re: How to pass a variable as parameter to a tag


On 2/16/06, Leeuw van der, Tim <[EMAIL PROTECTED]> wrote:
>
> But isn't the idea that you can use the parameter passed as name of
key
> to lookup in context? Then you can pass parameter to tag.
>

This way can only deal with the viariable which exists in context. But
how about:

{% mytag {{object.name}} %}

I'v seen that there is a new tag SET in developing. I hope it can be
some helpful.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit



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

Reply via email to