module Marten::Template::Filter

Defined in:

marten/template/filter.cr
marten/template/filter/base.cr
marten/template/filter/capitalize.cr
marten/template/filter/default.cr
marten/template/filter/down_case.cr
marten/template/filter/linebreaks.cr
marten/template/filter/safe.cr
marten/template/filter/size.cr
marten/template/filter/up_case.cr

Class Method Summary

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.


[View source]
def self.register(filter_name : String | Symbol, filter_klass : Base.class) #

Allows to register a new filter.


[View source]
def self.registry #

Returns the current registry of template filters.


[View source]