File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,25 @@ Example selector functions::
91
91
The example above assumes that the current user is stored on the
92
92
:data: `flask.g ` object.
93
93
94
+ Jinja Filters
95
+ -------------
96
+
97
+ Several commonly used formatters are added as jinja template filters after
98
+ calling `init_app(). ` For dates and times, these are:
99
+
100
+ - `<datetime>|datetimeformat ` -> `format_datetime `
101
+ - `<date>|dateformat ` -> `format_date `
102
+ - `<time>|timeformat ` -> `format_time `
103
+ - `<timedelta>|timedeltaformat ` -> `format_timedelta `
104
+
105
+ And for numbers, these are:
106
+
107
+ - `<number>|numberformat ` -> `format_number `
108
+ - `<number>|decimalformat ` -> `format_decimal `
109
+ - `<number>|currencyformat ` -> `format_currency `
110
+ - `<number>|percentformat ` -> `format_percent `
111
+ - `<number>|scientificformat ` -> `format_scientific `
112
+
94
113
Formatting Dates
95
114
----------------
96
115
You can’t perform that action at this time.
0 commit comments