
from .library import Library
from .filters import Filter


register = Library()


@register.filter(name='title')
class TitleFilter(Filter):
    def __rshift__(self, other):
        return str(other).title()


from .library import Library


register = Library()


@register.filter
def title(val):
    return str(val).title()

Convert to new style filter
Convert to new style filter
