pass complete context from template to simple_tag

7 views
Skip to first unread message

Berco Beute

unread,
Jun 2, 2008, 2:36:20 PM6/2/08
to Django users
I've written a simple tag that renders a template, but to do so it
needs the complete context. How can I pass that from a template?

Thanks,
2B

Julien

unread,
Jun 2, 2008, 10:21:18 PM6/2/08
to Django users
simple_tag doesn't accept context as argument, yet. You'll have to
create your own tag. See:
http://groups.google.com/group/django-users/browse_thread/thread/b3b3d7894f48b609/cf74b962aa68085e?lnk=gst&q=simple_tag+context#cf74b962aa68085e
Reply all
Reply to author
Forward
0 new messages