vibeauth.mvc.templatedata

A module containing helper functions to ease the template usage

Members

Functions

escapeHtmlString
string escapeHtmlString(string data)

Eschape html special chars: & " ' < >

getValue
string getValue(string variable, string routePath, string path)

Return true if the route path matches listpath/:id

isUserPage
bool isUserPage(string routePath, string path)

Return true if the route path matches listpath/:id

replaceVariables
string replaceVariables(string data, Json variables, string prefix)

Search variables #{variable_name} and replace them with the values from json

Structs

TemplateData
struct TemplateData

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

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Szabo Bogdan