421 | | # Syntax: template.register_filter(name of filter, callback, has_argument) |
422 | | template.register_filter('add', add, True) |
423 | | template.register_filter('addslashes', addslashes, False) |
424 | | template.register_filter('capfirst', capfirst, False) |
425 | | template.register_filter('center', center, True) |
426 | | template.register_filter('cut', cut, True) |
427 | | template.register_filter('date', date, True) |
428 | | template.register_filter('default', default, True) |
429 | | template.register_filter('dictsort', dictsort, True) |
430 | | template.register_filter('dictsortreversed', dictsortreversed, True) |
431 | | template.register_filter('divisibleby', divisibleby, True) |
432 | | template.register_filter('escape', escape, False) |
433 | | template.register_filter('filesizeformat', filesizeformat, False) |
434 | | template.register_filter('first', first, False) |
435 | | template.register_filter('fix_ampersands', fix_ampersands, False) |
436 | | template.register_filter('floatformat', floatformat, False) |
437 | | template.register_filter('get_digit', get_digit, True) |
438 | | template.register_filter('join', join, True) |
439 | | template.register_filter('length', length, False) |
440 | | template.register_filter('length_is', length_is, True) |
441 | | template.register_filter('linebreaks', linebreaks, False) |
442 | | template.register_filter('linebreaksbr', linebreaksbr, False) |
443 | | template.register_filter('linenumbers', linenumbers, False) |
444 | | template.register_filter('ljust', ljust, True) |
445 | | template.register_filter('lower', lower, False) |
446 | | template.register_filter('make_list', make_list, False) |
447 | | template.register_filter('phone2numeric', phone2numeric, False) |
448 | | template.register_filter('pluralize', pluralize, False) |
449 | | template.register_filter('pprint', pprint, False) |
450 | | template.register_filter('removetags', removetags, True) |
451 | | template.register_filter('random', random, False) |
452 | | template.register_filter('rjust', rjust, True) |
453 | | template.register_filter('slice', slice_, True) |
454 | | template.register_filter('slugify', slugify, False) |
455 | | template.register_filter('stringformat', stringformat, True) |
456 | | template.register_filter('striptags', striptags, False) |
457 | | template.register_filter('time', time, True) |
458 | | template.register_filter('timesince', timesince, False) |
459 | | template.register_filter('title', title, False) |
460 | | template.register_filter('truncatewords', truncatewords, True) |
461 | | template.register_filter('unordered_list', unordered_list, False) |
462 | | template.register_filter('upper', upper, False) |
463 | | template.register_filter('urlencode', urlencode, False) |
464 | | template.register_filter('urlize', urlize, False) |
465 | | template.register_filter('urlizetrunc', urlizetrunc, True) |
466 | | template.register_filter('wordcount', wordcount, False) |
467 | | template.register_filter('wordwrap', wordwrap, True) |
468 | | template.register_filter('yesno', yesno, True) |
| 420 | # Syntax: template.register_filter(name of filter, callback, has_argument, string_only) |
| 421 | template.register_filter('add', add, True, False) |
| 422 | template.register_filter('addslashes', addslashes, False, True) |
| 423 | template.register_filter('capfirst', capfirst, False, True) |
| 424 | template.register_filter('center', center, True, True) |
| 425 | template.register_filter('cut', cut, True, True) |
| 426 | template.register_filter('date', date, True, False) |
| 427 | template.register_filter('default', default, True, False) |
| 428 | template.register_filter('dictsort', dictsort, True, False) |
| 429 | template.register_filter('dictsortreversed', dictsortreversed, True, False) |
| 430 | template.register_filter('divisibleby', divisibleby, True, False) |
| 431 | template.register_filter('escape', escape, False, True) |
| 432 | template.register_filter('filesizeformat', filesizeformat, False, False) |
| 433 | template.register_filter('first', first, False, False) |
| 434 | template.register_filter('fix_ampersands', fix_ampersands, False, True) |
| 435 | template.register_filter('floatformat', floatformat, False, False) |
| 436 | template.register_filter('get_digit', get_digit, True, False) |
| 437 | template.register_filter('join', join, True, False) |
| 438 | template.register_filter('length', length, False, False) |
| 439 | template.register_filter('length_is', length_is, True, False) |
| 440 | template.register_filter('linebreaks', linebreaks, False, True) |
| 441 | template.register_filter('linebreaksbr', linebreaksbr, False, True) |
| 442 | template.register_filter('linenumbers', linenumbers, False, True) |
| 443 | template.register_filter('ljust', ljust, True, True) |
| 444 | template.register_filter('lower', lower, False, True) |
| 445 | template.register_filter('make_list', make_list, False, True) |
| 446 | template.register_filter('phone2numeric', phone2numeric, True, True) |
| 447 | template.register_filter('pluralize', pluralize, False, False) |
| 448 | template.register_filter('pprint', pprint, False, False) |
| 449 | template.register_filter('removetags', removetags, True, True) |
| 450 | template.register_filter('random', random, False, False) |
| 451 | template.register_filter('rjust', rjust, True, True) |
| 452 | template.register_filter('slice', slice_, True, False) |
| 453 | template.register_filter('slugify', slugify, False, True) |
| 454 | template.register_filter('stringformat', stringformat, True, True) |
| 455 | template.register_filter('striptags', striptags, False, True) |
| 456 | template.register_filter('time', time, True, False) |
| 457 | template.register_filter('timesince', timesince, False, False) |
| 458 | template.register_filter('title', title, False, True) |
| 459 | template.register_filter('truncatewords', truncatewords, True, True) |
| 460 | template.register_filter('unordered_list', unordered_list, False, False) |
| 461 | template.register_filter('upper', upper, False, True) |
| 462 | template.register_filter('urlencode', urlencode, False, True) |
| 463 | template.register_filter('urlize', urlize, False, True) |
| 464 | template.register_filter('urlizetrunc', urlizetrunc, True, True) |
| 465 | template.register_filter('wordcount', wordcount, False, True) |
| 466 | template.register_filter('wordwrap', wordwrap, True, True) |
| 467 | template.register_filter('yesno', yesno, True, False) |