blob: e83b7dc736833c7f1c4cdea2bcee1accf29fed9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
from django import test
from django import template
custom_filters = """
>>> t = template.Template("{% load custom %}{{ string|trim:5 }}")
>>> ctxt = template.Context({"string": "abcdefghijklmnopqrstuvwxyz"})
>>> t.render(ctxt)
u"abcde"
"""
|