-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
test_templates__vm@filters.txt.snap
62 lines (61 loc) · 1.29 KB
/
test_templates__vm@filters.txt.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
source: minijinja/tests/test_templates.rs
expression: "&rendered"
input_file: minijinja/tests/inputs/filters.txt
---
lower: bird
upper: BIRD
title: Bird
title-sentence: The Bird, Is The:Word
replace: third
escape: <
e: <
double-escape: <
safe: <
list-length: 3
list-from-list: [1, 2, 3]
list-from-map: ["a", "c"]
list-from-word: ['B', 'i', 'r', 'd']
list-from-undefined: []
bool-empty-string: false
bool-non-empty-string: true
bool-empty-list: false
bool-non-empty-list: true
bool-undefined: false
map-length: 2
string-length: 4
string-count: 4
reverse-list: [3, 2, 1]
reverse-string: driB
trim: |Spacebird|
trim-bird: ir
join-default: 123
join-pipe: 1|2|3
join_string: B-i-r-d
default: true
default-value: 42
first-list: 1
first-word: B
first-undefined: true
last-list: 3
last-word: d
last-undefined: true
d: true
json: {"a":"b","c":"d"}
json-pretty: {
"a": "b",
"c": "d"
}
json-scary-html: "\u003c\u003e\u0026\u0027"
urlencode: hello%20world/foo-bar_baz.txt
urlencode-kv: a=x%20y&b=2&c=3
batch: [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9]]
batch-fill: [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9, "-", "-"]]
slice: [[0, 1, 2, 3], [4, 5, 6], [7, 8, 9]]
slice-fill: [[0, 1, 2, 3], [4, 5, 6, "-"], [7, 8, 9, "-"]]
items: [["a", 1]]
int-abs: 42
float-abs: 42.5
int-round: 42
float-round: 43.0
float-round-prec2: 42.51