Added render and render_preview virtual methods to WebNode. This will make the reusability of nodes even better.

This commit is contained in:
Relintai 2022-02-14 23:07:10 +01:00
parent 75c5145370
commit 34e669c55b
2 changed files with 9 additions and 0 deletions

View File

@ -154,6 +154,11 @@ void WebNode::handle_error_send_request(Request *request, const int error_code)
request->send();
}
void WebNode::render(Request *request) {
}
void WebNode::render_preview(Request *request) {
}
void WebNode::render_menu(Request *request) {
WebNode *root = get_root();

View File

@ -46,6 +46,10 @@ public:
virtual void handle_request_main(Request *request);
virtual void _handle_request_main(Request *request);
virtual void handle_error_send_request(Request *request, const int error_code);
virtual void render(Request *request);
virtual void render_preview(Request *request);
virtual void render_menu(Request *request);
virtual void _render_menu(Request *request);