On Thu, 24 Nov 2005 09:42:33 +0000 Simon Willison wrote:

> {% counter %} - a 1996 era counter showing how many times that  
> specific page has been loaded
> {% context_specific_ads %} - ad banner code that changes depending
> on the URL
> {% browser_specific IE+Safari %} - Code only shown to IE and Safari  
> (yes, this is a horrible idea)
> {% one_off_ad %} - ad that is shown once, then blocked from future  
> display with a cookie

I've got lots of others, for reference (some imaginary):
{% main_menu %}
  context sensitive menu that highlights the top-level section
  you are currently in based on the path
{% sorting_control %}, {% paging_control %} 
  as per the code I posted to django-users, both of which forward
  other query string parameters, making combined
  sorting/paging/searching really easy 
{% dynamic_stylesheet %}
  changes the colour/background of the top bar depending on the path

Luke

-- 
"Pessimism: Every dark cloud has a silver lining, but lightning kills 
hundreds of people each year trying to find it." (despair.com)

Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

Reply via email to