Skip to content
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: https://django-notification.googlecode.com/svn/trunk@132 590c3fc9-4838-0410-bb95-17a0c9b37ca9
  • Loading branch information...
1 parent ac6e2fd commit 452dc8147e0afb49db23d0c739db3f873c19ee4c @brosner brosner committed
Showing with 0 additions and 23 deletions.
  1. 0 notification/templatetags/__init__.py
  2. +0 −23 notification/templatetags/captureas_tag.py
View
0 notification/templatetags/__init__.py
No changes.
View
23 notification/templatetags/captureas_tag.py
@@ -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 452dc81

Please sign in to comment.
Something went wrong with that request. Please try again.