pandemonium_engine/modules/web/nodes/static_pages/static_page.h

33 lines
651 B
C++
Raw Normal View History

#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