-, "Does django ?" ,
Django ( , =). , ( , ), '{{ x|add:1|add:1|...10000 in all...|add:1 }}'
>>> from django.template import *
>>> t = Template('{{ x|'+'|'.join(['add:1']*10000)+' }}')
>>> t.render(Context({'x':0}))
u'10000'
-, , , cut add; cut, , / .
, Django 0.95 :
def add(value, arg):
"Adds the arg to the value"
return int(value) + int(arg)