abstract class Crinja::Tag
- Crinja::Tag
- Reference
- Object
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:
**[autoescape](http://jinja.pocoo.org/docs/2.9/templates/#autoescape-overrides)**
**[block](http://jinja.pocoo.org/docs/2.9/templates/#blocks)**
**[call](http://jinja.pocoo.org/docs/2.9/templates/#call)**
**[extends](http://jinja.pocoo.org/docs/2.9/templates/#extends)**
**[filter](http://jinja.pocoo.org/docs/2.9/templates/#id11)**
**[for](http://jinja.pocoo.org/docs/2.9/templates/#for)**
**[from](http://jinja.pocoo.org/docs/2.9/templates/#import)**
**[if](http://jinja.pocoo.org/docs/2.9/templates/#if)**
**[import](http://jinja.pocoo.org/docs/2.9/templates/#import)**
**[include](http://jinja.pocoo.org/docs/2.9/templates/#include)**
**[macro](http://jinja.pocoo.org/docs/2.9/templates/#macros)**
**[raw](http://jinja.pocoo.org/docs/2.9/templates/#escaping)**
**[set](http://jinja.pocoo.org/docs/2.9/templates/#assignments)**
**[with](http://jinja.pocoo.org/docs/2.9/templates/#with-statement)**
See Jinja2 Template Documentation detailed explanations.
Direct Known Subclasses
- Crinja::Tag::Autoescape
- Crinja::Tag::Block
- Crinja::Tag::Call
- Crinja::Tag::Do
- Crinja::Tag::EndTag
- Crinja::Tag::Extends
- Crinja::Tag::Filter
- Crinja::Tag::For
- Crinja::Tag::From
- Crinja::Tag::If
- Crinja::Tag::If::Elif
- Crinja::Tag::If::Else
- Crinja::Tag::Import
- Crinja::Tag::Include
- Crinja::Tag::Macro
- Crinja::Tag::Raw
- Crinja::Tag::Set
- Crinja::Tag::With
Defined in:
lib/tag.crInstance Method Summary
- #end_tag : String?
- #has_block?(node : TagNode)
- #interpret_output(renderer : Renderer, tag_node : TagNode)
- #to_s(io)