Adding templatetag to djblets.siteconfig

Review Request #678 — Created Dec. 18, 2008 and discarded

Information

Review Board SVN (deprecated)

Reviewers

Added a templatetag which allows for nabbing siteconfig values in context. More or less a copy of similar efforts done in Django 1.0 for rendering forms inline without need for passing variables into templates.
No new code, really. Straight copy from django.forms. Used routinely.
chipx86
  1. This should be using our @blocktag code (see other templatetags in djblets), but I realized after seeing this that you really should just be using the siteconfig context processor. This gives you the "siteconfig" variable so you can do:
    
    {{siteconfig.settings.blah}}
  2.