Module: shared/register_filter

shared/register_filter

Registers filter functions on a template.
Source:

Methods

(static) registerFilter(name, callback)

Registers a filter on the template object.
Parameters:
Name Type Description
name string The name to register.
callback function The callback to trigger for the filter.
Source: