From 9e3efbecf801b90ce73009d86fea03d5c1788f37 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 28 Nov 2005 20:48:08 +0000 Subject: [PATCH] Restored {% debug %} template tag, which was inadvertently removed in [1443] git-svn-id: http://code.djangoproject.com/svn/django/trunk@1481 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/template/defaulttags.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/django/core/template/defaulttags.py b/django/core/template/defaulttags.py index d70d2a69338..89b35c2513b 100644 --- a/django/core/template/defaulttags.py +++ b/django/core/template/defaulttags.py @@ -360,6 +360,10 @@ def cycle(parser, token): raise TemplateSyntaxError("Invalid arguments to 'cycle': %s" % args) cycle = register.tag(cycle) +def debug(parser, token): + return DebugNode() +debug = register.tag(debug) + #@register.tag(name="filter") def do_filter(parser, token): """