deb-python-coffin/tests/res/apps/django_lib.py

12 lines
274 B
Python

"""A Django library, but but auto-loaded via the templatetags/ directory.
Instead, to use it, it needs to be added to the builtins.
"""
def foo(value):
return "{foo}"
from django.template import Library
register = Library()
register.filter('foo_django_builtin', foo)