PageRenderTime 17ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/tests/regressiontests/templates/templatetags/bad_tag.py

https://code.google.com/p/mango-py/
Python | 7 lines | 5 code | 2 blank | 0 comment | 0 complexity | 6b933a72fc7f6336dcd20a869f12c6e5 MD5 | raw file
1from django import template
2
3register = template.Library()
4
5@register.tag
6def badtag(parser, token):
7    raise RuntimeError("I am a bad tag")