euscan-ng/euscanwww/djeuscan/templatetags/sub.py
Corentin Chary da269b0711 euscanwww: euscan -> djeuscan
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
2012-04-04 17:31:54 +02:00

9 lines
136 B
Python

from django import template
register = template.Library()
def sub(value, arg=None):
return value-arg
register.filter('sub', sub)