diet.dom

Types to represent the DOM tree.

The DOM tree is used as an intermediate representation between the parser and the generator. Filters and other kinds of transformations can be executed on the DOM tree. The generator itself will apply filters and other traits using diet.traits.applyTraits.

Members

Classes

Document
class Document

Encapsulates a full Diet template document.

Node
class Node

Represents a single node in the DOM tree.

Enums

NodeAttribs
enum NodeAttribs

Flags that control parser or generator behavior.

Functions

toNodeContent
NodeContent[] toNodeContent(in AttributeContent[] contents, Location loc)

Converts an array of attribute contents to node contents.

Structs

Attribute
struct Attribute

A single node attribute.

AttributeContent
struct AttributeContent

A single piece of an attribute value.

Location
struct Location

Represents the location of an entity within the source file.

NodeContent
struct NodeContent

A single piece of node content.

Meta