It seems like I frequently find myself needing to write template tags for the various projects I work on here at Imaginary Landscape. The most common reason is generally so that I can adhere to the ideas of the DRY principle. For instance, YaBa has the potential to craft a rather lengthy sidebar with Twitter updates, GitHub activity, links, categories and archives, all of which are dynamic content. To make it more problematic, that side bar is in every single view. In order to accomplish that without template tags, I'd need to return objects for each of those in ...
Updated 10/26/09 @ 02:45PM CDT by markr
Categories: Django
Tags: django github templatetags
0 Comments

