Better home template

This commit is contained in:
emeric
2018-03-04 22:46:56 +01:00
parent 711dc613aa
commit 6ef33f69b6
2 changed files with 6 additions and 1 deletions
+3 -1
View File
@@ -31,7 +31,9 @@ namespace UserInterface {
Home::Home(Wt::WContainerWidget *parent)
: Wt::WContainerWidget(parent)
{
addWidget(new Wt::WTemplate(Wt::WString::tr("template-home")));
auto t = new Wt::WTemplate(Wt::WString::tr("template-home"), this);
t->addFunction("tr", &Wt::WTemplate::Functions::tr);
}
} // namespace UserInterface