abstract class Crinja::Tag

Overview

A tag (=control structure) refers to all those things that control the flow of a program - conditionals (i.e. if/elif/else), for-loops, as well as things like macros and blocks.

Control structures appear inside {% ... %} blocks.

Builtin tags

The following tags are available in the default library:

See Jinja2 Template Documentation detailed explanations.

Direct Known Subclasses

Defined in:

lib/tag.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def end_tag : String? #

[View source]
def has_block?(node : TagNode) #

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

[View source]
def to_s(io) #

[View source]

Macro Detail

macro name(name, end_tag = nil) #

[View source]