Add ord() to template filters (#25398)
* Add ord() to template filters * Remove trailing whitespace * add test
This commit is contained in:
1 parent
ea5d3ce85a
commit
3512d05467
2 files changed
+7
No files matched your search
@@ -857,6 +857,7 @@ class TemplateEnvironment(ImmutableSandboxedEnvironment):
|
||||
self.filters['regex_findall_index'] = regex_findall_index
|
||||
self.filters['bitwise_and'] = bitwise_and
|
||||
self.filters['bitwise_or'] = bitwise_or
|
||||
self.filters['ord'] = ord
|
||||
self.globals['log'] = logarithm
|
||||
self.globals['sin'] = sine
|
||||
self.globals['cos'] = cosine
|
||||
|
||||
Reference in new issue
Block a user