module Marten::Template::Filter
Defined in:
marten/template/filter.crmarten/template/filter/base.cr
marten/template/filter/capitalize.cr
marten/template/filter/default.cr
marten/template/filter/down_case.cr
marten/template/filter/join.cr
marten/template/filter/linebreaks.cr
marten/template/filter/safe.cr
marten/template/filter/size.cr
marten/template/filter/split.cr
marten/template/filter/up_case.cr
Class Method Summary
-
.get(filter_name : String | Symbol)
Returns the filter object corresponding to the passed
filter_name
. -
.register(filter_name : String | Symbol, filter_klass : Base.class)
Allows to register a new filter.
-
.registry
Returns the current registry of template filters.
Class Method Detail
def self.get(filter_name : String | Symbol)
#
Returns the filter object corresponding to the passed filter_name
.
If no filter can be found, a Marten::Template::Errors::InvalidSyntax
exception is raised.
Allows to register a new filter.