Wt  3.2.1
Static Public Member Functions
Wt::WTemplate::Functions Struct Reference

A collection of predefined functions. More...

List of all members.

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.

Detailed Description

A collection of predefined functions.

See also:
addFunction()

Member Function Documentation

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.

See also:
addFunction()
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")
See also:
addFunction()
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator

Generated on Fri Mar 30 2012 for the C++ Web Toolkit (Wt) by doxygen 1.7.5.1