On Fri, Jun 17, 2011 at 4:32 PM, Rodrigo Gomes <rgo...@gmail.com> wrote: > Hi, > This sounds really better! But I tried it and got an error. > What I tried to do, is to pass a string value that is not on the context, > like this: > {% my_tag with param_str="a string here" %}
{% with some_name_my_tag_wants=some_name tag_var2=var2 %} {% mytag %} {% endwith %} NB {% with %} has different syntax in <1.3 Thinking about it, this could be made easier if there was a standardized wrapper for parsing arguments. Less boilerplate in the template, less boilerplate in the tag code. Cheers Tom -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.