On Tue, Jul 2, 2013 at 11:24 PM, surya <[email protected]> wrote:
> I would like to pass object into template tag, then process it.. Is it
> possible
>
> def my_tag(parser, token):
>    return Node()
>
> The token object seems to be a string!! but how to get some objects??
>

https://docs.djangoproject.com/en/1.5/howto/custom-template-tags/#passing-template-variables-to-the-tag

Docs
  -> "The Template Layer"
    -> "Custom template tags and filters"
      -> "Passing template variables to the tag"

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to