Best Practice for Context Processors vs. Template Tags?

Posted by mawimawi on Stack Overflow See other posts from Stack Overflow or by mawimawi
Published on 2010-05-07T21:07:40Z Indexed on 2010/05/07 21:08 UTC
Read the original article Hit count: 140

Filed under:
|

In which cases is it better to create template tags (and load them into the template), than creating a context processor (which fills the request automatically)?

e.g. I have a dynamic menu that has to be included into all templates, so I'm putting it into my base.html. What is the preferred usage: context processor or custom template tag? And why?

© Stack Overflow or respective owner

Related posts about django-templates

Related posts about django