Wt
3.2.1
|
A collection of predefined functions. More...
Static Public Member Functions | |
static bool | tr (WTemplate *t, const std::vector< WString > &args, std::ostream &result) |
A function that resolves to a localized string. | |
static bool | id (WTemplate *t, const std::vector< WString > &args, std::ostream &result) |
A function that resolves the id of a bound widget. |
A collection of predefined functions.
bool Wt::WTemplate::Functions::id | ( | WTemplate * | t, |
const std::vector< WString > & | args, | ||
std::ostream & | result | ||
) | [static] |
A function that resolves the id of a bound widget.
For example, when bound to the function "id"
, a place-holder
${id:name}
will be resolved to the value of:
t->resolveWidget("name")->id()
This is useful for binding labels to input elements.
bool Wt::WTemplate::Functions::tr | ( | WTemplate * | t, |
const std::vector< WString > & | args, | ||
std::ostream & | result | ||
) | [static] |
A function that resolves to a localized string.
For example, when bound to the function "tr"
, a place-holder
${tr:name}
will be resolved to the value of:
WString::tr("name")