[][src]Module bracket::parser::ast

Abstract syntax tree node types.

Structs

Block

Block encapsulates an inner template.

Call

Call is a variable interpolation, helper invocation or partial render.

Component

Components form part of a path.

Document

Documents are abstract nodes that encapsulate a collection of child nodes.

Link

Link node for wiki-style links.

Path

Path to a variable.

Text

Text nodes refer to a consecutive range of bytes.

TextBlock

Text blocks encapsulate a text node with start and end ranges; used primarily for comments.

Enums

CallTarget

Call targets represent either a helper call, partial render or variable path.

ComponentType

Indicates the kind of path component.

Node

Nodes form the abstract syntax tree.

ParameterValue

Parameter values can be used as arguments or hash values.

RawIdType

Indicates the kind of escaping using for raw identifiers.

Traits

Element

Trait for elements that expect to be closed.

Lines

Trait for nodes that track line numbers.

Slice

Trait for nodes that reference a slice of the source template.