Provides an interface for registering and inserting content into simple logic-less string templates. Used by several helpers to provide simple flexible templates for generating HTML and other content.
Inherited | Abstract | Final | Static | Datatype | Header |
---|---|---|---|---|---|
bool | bool removeKey(string name) | ||||
void | void load(string fileName) | ||||
void | void _compileTemplates(string[] templateNames) | ||||
void | void pop() | ||||
this(Json[string] | this(Json[string] initData) | ||||
string | string format(string key, Json[string] insertData) | ||||
void | void _compileAllTemplates() | ||||
bool | bool initialize(Json[string] initData = null) | ||||
void | void set(string key, string newTemplate) | ||||
void | void push() | ||||
string | string _formatAttribute(string key, Json attributeData, bool shouldEscape = true) | ||||
void | void compileTemplate(string templateName) | ||||
string | string formatAttributes(Json[string] options, string[] excludedKeys) | ||||
this(string | this(string newName, Json[string] initData = null) | ||||
string | string get(string key) | ||||
this() | this() | ||||
string | string formatAttributes(Json[string] options, bool[string] excludedOptions = null) | ||||
string[] | string[] addclassnameToList(string[] classnames, string newclassname) | ||||
string | string _formatAttribute(string key, string value, bool shouldEscape = true) | ||||
string[] | string[] addclassnameToList(string[] classnames, string[] newclassnames) | ||||
void | void set(string[string] newTemplates) |