archery/core/template_engine library

Classes

BinaryExpr
An expression that applies a binary operator to two operands.
CsrfNode
A directive that emits a hidden CSRF-token input.
Expr
Base type for expressions embedded in template output and directives.
ExprParser
Parses the expression language used inside template tags and directives.
ForeachNode
A loop created from an @foreach(item in collection) directive.
IfNode
A conditional block created from an @if directive.
IncludeNode
A reference to another template that should be rendered inline.
LiteralExpr
An expression containing a constant string, number, boolean, or null value.
Node
Base type for nodes in a parsed template.
OutputNode
An expression whose result is written to the rendered output.
SectionNode
A named content block supplied to a layout.
TemplateEngine
Parses and renders Archery HTML templates.
TemplateNode
The root of a parsed template.
TemplateParser
Converts template source into a TemplateNode syntax tree.
TextNode
A literal block of template text.
UnaryNotExpr
A logical negation expression, such as !user.isActive.
VariableExpr
A reference to a value in the render context.
YieldNode
A layout placeholder populated by a matching SectionNode.

Exceptions / Errors

TemplateEngineException
An error raised while locating, parsing, or rendering a template.