Saturday, January 1, 2011

Re: merge 2 views?

On 1 jan, 08:01, Sam Lai <samuel....@gmail.com> wrote:
(snip)
> An alternative solution would be to create a template tag

(snip)

> It's a little bit more complicated in code though (made a lot easier
> in Django 1.3 with simple_tag)

"simple_tag" is nothing new - it has been here since the 0.96 days
IIRC.

And FWIW, writing a "full" custom tag is far from difficult (even if
sometimes a bit boring), and it's really something all django coders
should learn.

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