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

Macro Summary

Instance Method Summary

Macro Detail

macro name(name, end_tag = nil) #

Instance Method Detail

def end_tag : String | Nil #

def has_block?(node : TagNode) #

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

def to_s(io) #