(Note: we can register a filter with dots, but we can’t call it. If we try to “namespace” our filter by registering it under something like my_filters.filter_name
, we’ll get a parser error when we try to use it. There is an open issue for this, but it has not been identified as something that will change.)
This mapping is done one time (TemplateOptions
is a singleton, remember), and is global to all template executions.
Once the filter is mapped, we can call it like this: