Jinja Compat Tests

Enabled engines

filesizeformat filter

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) }}

(error) v1.10.1

Could not parse the remainder: '(true)' from '0|filesizeformat(true)'

v2.8.0

0 Bytes
1 Byte
2 Bytes
10 Bytes
100 Bytes
1000 Bytes
976.6 KiB
953.7 MiB
931.3 GiB

v3.0.6

0
1
2
10
100
1000
1000000
1000000000
1000000000000

(error) v2.5.0


  Error: filter not found: filesizeformat

(error) v1.4.2

Invalid filter "filesizeformat".

(error) v1.24.2

Unknown "filesizeformat" filter.

(error) v0.9.5

Unable to find filter filesizeformat

Template

{{ 0|filesizeformat }}
{{ 1|filesizeformat }}
{{ 2|filesizeformat }}
{{ 10|filesizeformat }}
{{ 100|filesizeformat }}
{{ 1000|filesizeformat }}
{{ 1000000|filesizeformat }}
{{ 1000000000|filesizeformat }}
{{ 1000000000000|filesizeformat }}

(error) v1.10.1

'ascii' codec can't encode character u'\xa0' in position 1: ordinal not in range(128)

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

v3.0.6

0
1
2
10
100
1000
1000000
1000000000
1000000000000

(error) v2.5.0


  Error: filter not found: filesizeformat

(error) v1.4.2

Invalid filter "filesizeformat".

(error) v1.24.2

Unknown "filesizeformat" filter.

(error) v0.9.5

Unable to find filter filesizeformat