mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-20 02:46:53 +01:00
33 lines
651 B
C++
33 lines
651 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 render_index(Request *request);
|
||
|
void render_preview(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);
|
||
|
void set_preview_data(const String &d);
|
||
|
|
||
|
String data;
|
||
|
String preview_data;
|
||
|
bool should_render_menu;
|
||
|
|
||
|
StaticPage();
|
||
|
~StaticPage();
|
||
|
};
|
||
|
|
||
|
#endif
|