Tests
Test: binary
Template
{{ 0|filesizeformat(true) }}
{{ 1|filesizeformat(true) }}
{{ 2|filesizeformat(true) }}
{{ 10|filesizeformat(true) }}
{{ 100|filesizeformat(true) }}
{{ 1000|filesizeformat(true) }}
{{ 1000000|filesizeformat(true) }}
{{ 1000000000|filesizeformat(true) }}
{{ 1000000000000|filesizeformat(true) }}
Output Django (error) v1.10.1
Could not parse the remainder: '(true)' from '0|filesizeformat(true)'
Output Jinja2 v2.8.0
0 Bytes
1 Byte
2 Bytes
10 Bytes
100 Bytes
1000 Bytes
976.6 KiB
953.7 MiB
931.3 GiB
Output Liquid v3.0.6
0
1
2
10
100
1000
1000000
1000000000
1000000000000
Output Nunjucks (error) v2.5.0
Error: filter not found: filesizeformat
Output Swig (error) v1.4.2
Invalid filter "filesizeformat".
Output Twig (error) v1.24.2
Unknown "filesizeformat" filter.
Output Twigjs (error) v0.9.5
Unable to find filter filesizeformat
Test: default
Template
{{ 0|filesizeformat }}
{{ 1|filesizeformat }}
{{ 2|filesizeformat }}
{{ 10|filesizeformat }}
{{ 100|filesizeformat }}
{{ 1000|filesizeformat }}
{{ 1000000|filesizeformat }}
{{ 1000000000|filesizeformat }}
{{ 1000000000000|filesizeformat }}
Output Django (error) v1.10.1
'ascii' codec can't encode character u'\xa0' in position 1: ordinal not in range(128)
Output Jinja2 v2.8.0
0 Bytes
1 Byte
2 Bytes
10 Bytes
100 Bytes
1.0 kB
1.0 MB
1.0 GB
1.0 TB
Output Liquid v3.0.6
0
1
2
10
100
1000
1000000
1000000000
1000000000000
Output Nunjucks (error) v2.5.0
Error: filter not found: filesizeformat
Output Swig (error) v1.4.2
Invalid filter "filesizeformat".
Output Twig (error) v1.24.2
Unknown "filesizeformat" filter.
Output Twigjs (error) v0.9.5
Unable to find filter filesizeformat