#include #include #include #include #include class DemoApp : public Wt::WApplication { public: DemoApp(const Wt::WEnvironment& env) : Wt::WApplication{ env } { auto* btn = this->root()->addNew("click me!"); btn->clicked().connect([this]() { const char* text = R"(${}link${})"; auto* t = this->root()->addNew(text); t->setInternalPathEncoding(true); }); } }; //! //! //! int main(int argc, char** args) { Wt::WServer server(argc, args); server.addEntryPoint(Wt::EntryPointType::Application, [](const Wt::WEnvironment& env) { return std::make_unique(env); }); if (server.start()) { server.waitForShutdown(); server.stop(); } }