Index: templatetags/siteconfig_tags.py
===================================================================
--- templatetags/siteconfig_tags.py	(revision 0)
+++ templatetags/siteconfig_tags.py	(revision 0)
@@ -0,0 +1,42 @@
+import re
+
+from django import template
+from django.template import Library, Node
+from django.template.defaultfilters import stringfilter
+
+from djblets.siteconfig.models import SiteConfiguration
+
+config = SiteConfiguration.objects.get_current()
+register = Library()
+
+class SiteconfigNode(template.Node):
+    def __init__(self, string, var_name):
+        self.string = string
+        self.var_name = var_name
+    def render(self, context):
+        try:
+            value = config.get(self.string)
+        except AttributeError:
+            value = None
+
+        context[self.var_name] = value
+        return ''
+
+@register.tag(name="siteconfig")
+def do_siteconfig(parser,token):
+    try:
+        tag_name, arg = token.contents.split(None,1)
+
+    except ValueErorr:
+        raise template.TemplateSyntaxEror, "%r tag requires arguments" % token.contents.split()[0]
+
+    m = re.search(r'(.*?) as (\w+)', arg)
+
+    if not m:
+        raise template.TemplateSyntaxError, "%r tag had invalid arguments" % tag_name
+
+    format_string, var_name = m.groups()
+
+    if not (format_string[0] == format_string[-1] and format_string[0] in ('"',"'")):
+        raise template.TemplateSyntaxError, "%r tag's argument should be in quotes" % tag_name 
+    return SiteconfigNode(format_string[1:-1], var_name)
