2024-11-01 19:05:20 +08:00
|
|
|
#include "BlogApplication.h"
|
|
|
|
#include "view/BlogView.h"
|
|
|
|
#include <Wt/WContainerWidget.h>
|
|
|
|
|
|
|
|
static const char *FeedUrl = "/blog/feed/";
|
|
|
|
|
|
|
|
BlogApplication::BlogApplication(const Wt::WEnvironment &env, Wt::Dbo::SqlConnectionPool &blogDb)
|
|
|
|
: Wt::WApplication(env) {
|
2024-11-02 00:30:14 +08:00
|
|
|
messageResourceBundle().use(Wt::WApplication::appRoot() + "blog");
|
|
|
|
useStyleSheet("/css/blog.css");
|
|
|
|
useStyleSheet("/css/asciidoc.css");
|
|
|
|
|
|
|
|
|
2024-11-01 19:05:20 +08:00
|
|
|
root()->addWidget(std::make_unique<BlogView>("/", blogDb, FeedUrl));
|
|
|
|
useStyleSheet("css/blogexample.css");
|
|
|
|
}
|