/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
- from django import template
- register = template.Library()
- @register.tag
- def badtag(parser, token):
- raise RuntimeError("I am a bad tag")