TemplateData

Structure used to store the data that will rendered inside a template

Members

Functions

add
void add(Json options)
void add(string key, Json options)
void add(string key, string value)

Adds a set of options. The strings that will match these options will be replaced in the rendered string.

addError
void addError(string error)

Add an error to the user

addMessage
void addMessage(string message)

Add a notification to the user

get
string get(string variable)

Get a variable

render
string render(string page)

Render a template

set
void set(string variable, string route, string path)

Set a variable that will be replaced inside the options.

Meta