class Crinja::Tag::Autoescape

Overview

If you want you can activate and deactivate the autoescaping from within the templates.

{% autoescape true %}
    Autoescaping is active within this block
{% endautoescape %}

{% autoescape false %}
    Autoescaping is inactive within this block
{% endautoescape %}

After an endautoescape the behavior is reverted to what it was before.

See Jinja2 Template Documentation for details.

Defined in:

lib/tag/autoescape.cr

Instance Method Summary

Instance methods inherited from class Crinja::Tag

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

Instance Method Detail

def end_tag : String? #

[View source]
def interpret_output(renderer : Crinja::Renderer, tag_node : TagNode) #

[View source]
def name : String #

[View source]