> What I can't quite grasp with django is, suppose I have a three column
> layout for a shopping site and I wanted to show  a summary of the
> carts contents on MOST of my pages in the third column ... Would I
> then have have to implement the functionality of this in every view by
> calling an cartSummary method and pushing that out into the template?
> Or is it better to somehow compile all this functionality into a
> template tag itself - if that's possible?

Sounds like the template tag is what you're looking for.  Basic
template tags are pretty easy and there are some nice helper
functions that facilitate the process.  They're detailed in the
documentation for template tags.  That way, your view only needs
the brains to pass in what's needed for the template tag's
context, and the template can choose to render the tag or skip
rendering the tag.

-tim



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to