Permalink
Browse files

Removed the captureas template tag.

It is no longer needed since Django 1.0 introduced the as keyword to {% url %}.

git-svn-id: http://django-notification.googlecode.com/svn/trunk@132 590c3fc9-4838-0410-bb95-17a0c9b37ca9
  • Loading branch information...
brosner committed Jan 4, 2009
1 parent 2973596 commit e2eb80c522bd84a45d53cf0260c26d55c8876ed7
Showing with 0 additions and 23 deletions.
  1. 0 notification/templatetags/__init__.py
  2. +0 −23 notification/templatetags/captureas_tag.py
No changes.
@@ -1,23 +0,0 @@
-from django import template
-
-register = template.Library()
-
-@register.tag(name='captureas')
-def do_captureas(parser, token):
- try:
- tag_name, args = token.contents.split(None, 1)
- except ValueError:
- raise template.TemplateSyntaxError("'captureas' node requires a variable name.")
- nodelist = parser.parse(('endcaptureas',))
- parser.delete_first_token()
- return CaptureasNode(nodelist, args)
-
-class CaptureasNode(template.Node):
- def __init__(self, nodelist, varname):
- self.nodelist = nodelist
- self.varname = varname
-
- def render(self, context):
- output = self.nodelist.render(context)
- context[self.varname] = output
- return ''

0 comments on commit e2eb80c

Please sign in to comment.