You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Filters can be used when defining [computed attributes](https://docs.infrahub.app/guides/computed-attributes) or [Jinja2 Transforms](https://docs.infrahub.app/guides/jinja2-transform) within Infrahub.
5
+
6
+
## Builtin Jinja2 filters
7
+
8
+
The following filters are those that are [shipped with Jinja2](https://jinja.palletsprojects.com/en/stable/templates/#list-of-builtin-filters) and enabled within Infrahub. The trusted column indicates if the filter is allowed for use with Infrahub's computed attributes when the server is configured in strict mode.
Filters can be used when defining [computed attributes](https://docs.infrahub.app/guides/computed-attributes) or [Jinja2 Transforms](https://docs.infrahub.app/guides/jinja2-transform) within Infrahub.
5
+
6
+
## Builtin Jinja2 filters
7
+
8
+
The following filters are those that are [shipped with Jinja2](https://jinja.palletsprojects.com/en/stable/templates/#list-of-builtin-filters) and enabled within Infrahub. The trusted column indicates if the filter is allowed for use with Infrahub's computed attributes when the server is configured in strict mode.
9
+
10
+
<!--valeoff-->
11
+
|Name|Trusted|
12
+
|----------|----------|
13
+
|abs|✅|
14
+
|attr|❌|
15
+
|batch|❌|
16
+
|capitalize|✅|
17
+
|center|✅|
18
+
|count|✅|
19
+
|d|✅|
20
+
|default|✅|
21
+
|dictsort|❌|
22
+
|e|✅|
23
+
|escape|✅|
24
+
|filesizeformat|✅|
25
+
|first|✅|
26
+
|float|✅|
27
+
|forceescape|✅|
28
+
|format|✅|
29
+
|groupby|❌|
30
+
|indent|✅|
31
+
|int|✅|
32
+
|items|❌|
33
+
|join|✅|
34
+
|last|✅|
35
+
|length|✅|
36
+
|list|✅|
37
+
|lower|✅|
38
+
|map|❌|
39
+
|max|✅|
40
+
|min|✅|
41
+
|pprint|❌|
42
+
|random|❌|
43
+
|reject|❌|
44
+
|rejectattr|❌|
45
+
|replace|✅|
46
+
|reverse|✅|
47
+
|round|✅|
48
+
|safe|❌|
49
+
|select|❌|
50
+
|selectattr|❌|
51
+
|slice|✅|
52
+
|sort|❌|
53
+
|string|✅|
54
+
|striptags|✅|
55
+
|sum|✅|
56
+
|title|✅|
57
+
|tojson|❌|
58
+
|trim|✅|
59
+
|truncate|✅|
60
+
|unique|❌|
61
+
|upper|✅|
62
+
|urlencode|✅|
63
+
|urlize|❌|
64
+
|wordcount|✅|
65
+
|wordwrap|✅|
66
+
|xmlattr|❌|
67
+
<!--valeon-->
68
+
69
+
##Netutilsfilters
70
+
71
+
ThefollowingJinja2filtersfrom<ahref="https://netutils.readthedocs.io">Netutils</a> are included within Infrahub.
0 commit comments