TagCollection

Wrapper around a tag collection.

Members

Functions

add
void add(string key, T value)

Adds a tag to the collection.

clearTags
void clearTags()

Clears all tags.

clearTags
void clearTags(string tagPrefix)

Clears tags based on a tag prefix ex. "page::", "item::" etc.

createTags
void createTags()

Creates an inner tag collection.

get
T get(string name, T defaultValue)

Gets the value of a tag in the collection.

getLoop
Loop getLoop(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
has
bool has(string key)

Checks whether a key exist in the collection or not.

remove
void remove(string key)

Removes a tag from the collection.

Properties

keys
auto keys [@property getter]

Gets the keys of the tags.

Variables

_tags
TagCollection!tagName _tags;

An inner collection of tags.

Meta