#include <Template.h>
Inheritance diagram for CB2::Template:
Public Member Functions | |
Template () | |
Constructor. | |
Template (const String &value) | |
Constructor. | |
const Template & | operator+= (const String &right) |
Append a string to template. | |
String::size_type | Subst (const String &anchor, const String &value) |
Substitute an anchor in template. | |
String::size_type | SubstURL (const String &anchor, const String &value) |
Substitute an URL anchor in template. | |
String | Render () |
Render template. | |
Public Attributes | |
int | tag |
Tag for user-specific data. | |
Private Attributes | |
String | macro |
Template storage. |
This class stores a visual template with anchors. These anchors are substituted by the rendered value of other templates or rendered widgets.
|
Constructor. Create an empty template. |
|
Constructor. Create a template initialized from string.
|
|
Append a string to template.
|
|
Render template. Generate the final output of the template. Check for any unsubstituted anchors and remove escaped ampersands.
|
|
Substitute an anchor in template. Substitute an anchor in the template with another value.
|
|
Substitute an URL anchor in template. TODO
|
|
Template storage.
|
|
Tag for user-specific data.
|