Part

Wrapper for a template part. Template parts are the aprsed parts of the view.

Constructors

this
this()

Creates a new template part.

Members

Functions

decreaseSeekIndex
void decreaseSeekIndex()

Decreases the seek index.

increaseSeekIndex
void increaseSeekIndex()

Increases the seek index.

isEnd
auto isEnd(char currentChar)

Checks whether the current character will end the scope of this part.

isStart
auto isStart()

Checks whether it's the start of the part or not.

Properties

content
const(string) content [@property getter]

Gets the content of the part.

contentMode
const(ContentMode) contentMode [@property getter]

Gets the content mode.

currentGrammar
Grammar currentGrammar [@property setter]

Sets the current grammar.

currentGrammar
Grammar currentGrammar [@property getter]

Gets the current grammar.

name
const(string) name [@property getter]

Gets the name of the part.

Variables

_content
string _content;

The content.

_currentGrammar
Grammar _currentGrammar;

The current grammar.

_name
immutable(string) _name;

The name.

_seekIndex
size_t _seekIndex;

The seek index.

Meta