/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

  1. from django import template
  2. register = template.Library()
  3. @register.tag
  4. def badtag(parser, token):
  5. raise RuntimeError("I am a bad tag")