mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
28 lines
510 B
C++
28 lines
510 B
C++
#ifndef STATIC_PAGE_H
|
|
#define STATIC_PAGE_H
|
|
|
|
#include "core/string.h"
|
|
|
|
#include "web/http/web_node.h"
|
|
|
|
class StaticPage : public WebNode {
|
|
RCPP_OBJECT(StaticPage, WebNode);
|
|
|
|
public:
|
|
void _handle_request_main(Request *request);
|
|
|
|
void load_file(const String &path);
|
|
void load_and_process_file(const String &path);
|
|
void load_md_file(const String &path);
|
|
|
|
void set_data_md(const String &d);
|
|
void set_data(const String &d);
|
|
|
|
String data;
|
|
bool should_render_menu;
|
|
|
|
StaticPage();
|
|
~StaticPage();
|
|
};
|
|
|
|
#endif |