class Crinja::Tag::Filter

Overview

Filter sections allow you to apply regular Crinja::Filter filters on a block of template data. Just wrap the code in the special filter block:

{% filter upper %}
    This text becomes uppercase
{% endfilter %}

See Jinja2 Template Documentation for details.

Defined in:

lib/tag/filter.cr

Instance Method Summary

Instance methods inherited from class Crinja::Tag

end_tag : String | Nil end_tag, has_block?(node : TagNode) has_block?, interpret_output(renderer : Renderer, tag_node : TagNode) interpret_output, to_s(io) to_s

Macros inherited from class Crinja::Tag

name(name, end_tag = nil) name

Instance Method Detail

def end_tag : String | Nil #

def interpret_output(renderer : Renderer, tag_node : TagNode) #

def name : String #