On 7/4/07, Bryan Veloso <[EMAIL PROTECTED]> wrote:
>
> > {{ classes|random }}
>
> Can you serve Context to the base template?
> I thought of that earlier, but I couldn't think of how to give it
> Context.

What do you mean? You pass a context to the template renderer; if the
template you render references a base template, then it will get the
same contexts that the renderer was given.

If you want to hardcode the availability of the 'classes' variable in
every context (so you don't have to remember to define it every time),
you could write a context processor. See
django.core.context_processors for examples.

Russ %-)

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to