Wt  3.2.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Static Public Member Functions | List of all members
Wt::WTemplate::Functions Struct Reference

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.

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()

Generated on Mon Oct 29 2012 for the C++ Web Toolkit (Wt) by doxygen 1.8.1.2