line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DTL::Fast::Filters; |
2
|
98
|
|
|
98
|
|
551
|
use strict; |
|
98
|
|
|
|
|
190
|
|
|
98
|
|
|
|
|
2188
|
|
3
|
98
|
|
|
98
|
|
437
|
use utf8; |
|
98
|
|
|
|
|
187
|
|
|
98
|
|
|
|
|
432
|
|
4
|
98
|
|
|
98
|
|
2206
|
use warnings FATAL => 'all'; |
|
98
|
|
|
|
|
198
|
|
|
98
|
|
|
|
|
2853
|
|
5
|
|
|
|
|
|
|
|
6
|
98
|
|
|
98
|
|
482
|
use DTL::Fast qw(register_filter); |
|
98
|
|
|
|
|
200
|
|
|
98
|
|
|
|
|
13067
|
|
7
|
|
|
|
|
|
|
# not in Django |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# experimental |
10
|
|
|
|
|
|
|
register_filter(qw( |
11
|
|
|
|
|
|
|
numberformat DTL::Fast::Filter::Numberformat |
12
|
|
|
|
|
|
|
reverse DTL::Fast::Filter::Reverse |
13
|
|
|
|
|
|
|
strftime DTL::Fast::Filter::Strftime |
14
|
|
|
|
|
|
|
split DTL::Fast::Filter::Split |
15
|
|
|
|
|
|
|
)); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# built in filters |
18
|
|
|
|
|
|
|
register_filter(qw( |
19
|
|
|
|
|
|
|
add DTL::Fast::Filter::Add |
20
|
|
|
|
|
|
|
addslashes DTL::Fast::Filter::Addslashes |
21
|
|
|
|
|
|
|
capfirst DTL::Fast::Filter::Capfirst |
22
|
|
|
|
|
|
|
center DTL::Fast::Filter::Center |
23
|
|
|
|
|
|
|
cut DTL::Fast::Filter::Cut |
24
|
|
|
|
|
|
|
date DTL::Fast::Filter::Date |
25
|
|
|
|
|
|
|
default DTL::Fast::Filter::Default |
26
|
|
|
|
|
|
|
default_if_none DTL::Fast::Filter::DefaultIfNone |
27
|
|
|
|
|
|
|
dictsort DTL::Fast::Filter::Dictsort |
28
|
|
|
|
|
|
|
dictsortreversed DTL::Fast::Filter::Dictsortreversed |
29
|
|
|
|
|
|
|
divisibleby DTL::Fast::Filter::Divisibleby |
30
|
|
|
|
|
|
|
escape DTL::Fast::Filter::Escape |
31
|
|
|
|
|
|
|
escapejs DTL::Fast::Filter::Escapejs |
32
|
|
|
|
|
|
|
filesizeformat DTL::Fast::Filter::Filesizeformat |
33
|
|
|
|
|
|
|
first DTL::Fast::Filter::First |
34
|
|
|
|
|
|
|
floatformat DTL::Fast::Filter::Floatformat |
35
|
|
|
|
|
|
|
force_escape DTL::Fast::Filter::Escape |
36
|
|
|
|
|
|
|
get_digit DTL::Fast::Filter::Getdigit |
37
|
|
|
|
|
|
|
iriencode DTL::Fast::Filter::Iriencode |
38
|
|
|
|
|
|
|
join DTL::Fast::Filter::Join |
39
|
|
|
|
|
|
|
last DTL::Fast::Filter::Last |
40
|
|
|
|
|
|
|
length DTL::Fast::Filter::Length |
41
|
|
|
|
|
|
|
length_is DTL::Fast::Filter::Lengthis |
42
|
|
|
|
|
|
|
linebreaks DTL::Fast::Filter::Linebreaks |
43
|
|
|
|
|
|
|
linebreaksbr DTL::Fast::Filter::Linebreaksbr |
44
|
|
|
|
|
|
|
linenumbers DTL::Fast::Filter::Linenumbers |
45
|
|
|
|
|
|
|
ljust DTL::Fast::Filter::Ljust |
46
|
|
|
|
|
|
|
lower DTL::Fast::Filter::Lower |
47
|
|
|
|
|
|
|
make_list DTL::Fast::Filter::MakeList |
48
|
|
|
|
|
|
|
phone2numeric DTL::Fast::Filter::PhoneToNumeric |
49
|
|
|
|
|
|
|
pluralize DTL::Fast::Filter::Pluralize |
50
|
|
|
|
|
|
|
random DTL::Fast::Filter::Random |
51
|
|
|
|
|
|
|
removetags DTL::Fast::Filter::Removetags |
52
|
|
|
|
|
|
|
rjust DTL::Fast::Filter::Rjust |
53
|
|
|
|
|
|
|
safe DTL::Fast::Filter::Safe |
54
|
|
|
|
|
|
|
safeseq DTL::Fast::Filter::SafeSeq |
55
|
|
|
|
|
|
|
slice DTL::Fast::Filter::Slice |
56
|
|
|
|
|
|
|
slugify DTL::Fast::Filter::Slugify |
57
|
|
|
|
|
|
|
stringformat DTL::Fast::Filter::Stringformat |
58
|
|
|
|
|
|
|
striptags DTL::Fast::Filter::Striptags |
59
|
|
|
|
|
|
|
time DTL::Fast::Filter::Time |
60
|
|
|
|
|
|
|
timesince DTL::Fast::Filter::Timesince |
61
|
|
|
|
|
|
|
timeuntil DTL::Fast::Filter::Timeuntil |
62
|
|
|
|
|
|
|
title DTL::Fast::Filter::Title |
63
|
|
|
|
|
|
|
truncatechars DTL::Fast::Filter::Truncatechars |
64
|
|
|
|
|
|
|
truncatechars_html DTL::Fast::Filter::Truncatecharshtml |
65
|
|
|
|
|
|
|
truncatewords DTL::Fast::Filter::Truncatewords |
66
|
|
|
|
|
|
|
truncatewords_html DTL::Fast::Filter::Truncatewordshtml |
67
|
|
|
|
|
|
|
unordered_list DTL::Fast::Filter::Unorderedlist |
68
|
|
|
|
|
|
|
upper DTL::Fast::Filter::Upper |
69
|
|
|
|
|
|
|
urlencode DTL::Fast::Filter::Urlencode |
70
|
|
|
|
|
|
|
urlize DTL::Fast::Filter::Urlize |
71
|
|
|
|
|
|
|
urlizetrunc DTL::Fast::Filter::Urlizetrunc |
72
|
|
|
|
|
|
|
wordcount DTL::Fast::Filter::Wordcount |
73
|
|
|
|
|
|
|
wordwrap DTL::Fast::Filter::Wordwrap |
74
|
|
|
|
|
|
|
yesno DTL::Fast::Filter::Yesno |
75
|
|
|
|
|
|
|
)); |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
1; |