Renamed the render virtual to render_index.

This commit is contained in:
Relintai 2022-02-14 23:27:26 +01:00
parent 001339fc60
commit d4a636c15d
14 changed files with 19 additions and 19 deletions

View File

@ -154,7 +154,7 @@ void WebNode::handle_error_send_request(Request *request, const int error_code)
request->send();
}
void WebNode::render(Request *request) {
void WebNode::render_index(Request *request) {
}
void WebNode::render_preview(Request *request) {
}

View File

@ -47,7 +47,7 @@ public:
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_index(Request *request);
virtual void render_preview(Request *request);
virtual void render_menu(Request *request);

View File

@ -23,7 +23,7 @@ void BrowsableFolderServeNode::_handle_request_main(Request *request) {
request->compile_and_send_body();
}
void BrowsableFolderServeNode::render(Request *request) {
void BrowsableFolderServeNode::render_index(Request *request) {
String *s = _folder_indexes["/"];
if (!s) {

View File

@ -12,7 +12,7 @@ class BrowsableFolderServeNode : public FolderServeNode {
public:
void _handle_request_main(Request *request);
void render(Request *request);
void render_index(Request *request);
void render_preview(Request *request);
virtual void load();

View File

@ -26,7 +26,7 @@ void ListPage::handle_request_main(Request *request) {
if (cs == "") {
render_menu(request);
render(request);
render_index(request);
request->compile_and_send_body();
return;
}
@ -50,7 +50,7 @@ void ListPage::handle_request_main(Request *request) {
request->compile_and_send_body();
}
void ListPage::render(Request *request) {
void ListPage::render_index(Request *request) {
request->body += _pages[0];
}
void ListPage::render_preview(Request *request) {

View File

@ -33,7 +33,7 @@ class ListPage : public WebNode {
public:
void handle_request_main(Request *request);
void render(Request *request);
void render_index(Request *request);
void render_preview(Request *request);
void load();

View File

@ -29,7 +29,7 @@ void PagedArticle::handle_request_main(Request *request) {
if (rp == "") {
render_menu(request);
render(request);
render_index(request);
request->compile_and_send_body();
return;
@ -48,7 +48,7 @@ void PagedArticle::handle_request_main(Request *request) {
request->compile_and_send_body();
}
void PagedArticle::render(Request *request) {
void PagedArticle::render_index(Request *request) {
// summary page
request->body += index_page;
}

View File

@ -16,7 +16,7 @@ class PagedArticle : public WebNode {
public:
void handle_request_main(Request *request);
void render(Request *request);
void render_index(Request *request);
void render_preview(Request *request);
void load();

View File

@ -11,12 +11,12 @@
void PagedArticles::_handle_request_main(Request *request) {
render_menu(request);
render(request);
render_index(request);
request->compile_and_send_body();
}
void PagedArticles::render(Request *request) {
void PagedArticles::render_index(Request *request) {
// summary page
request->body += index_page;
}

View File

@ -17,7 +17,7 @@ class PagedArticles : public WebNode {
public:
void _handle_request_main(Request *request);
void render(Request *request);
void render_index(Request *request);
void render_preview(Request *request);
void load();

View File

@ -21,8 +21,8 @@ void PagedArticlesMDIndex::handle_request_main(Request *request) {
articles->handle_request_main(request);
}
void PagedArticlesMDIndex::render(Request *request) {
main_page->render(request);
void PagedArticlesMDIndex::render_index(Request *request) {
main_page->render_index(request);
}
void PagedArticlesMDIndex::render_preview(Request *request) {

View File

@ -17,7 +17,7 @@ class PagedArticlesMDIndex : public WebNode {
public:
void handle_request_main(Request *request);
void render(Request *request);
void render_index(Request *request);
void render_preview(Request *request);
void load();

View File

@ -11,11 +11,11 @@ void StaticPage::_handle_request_main(Request *request) {
render_menu(request);
}
render(request);
render_index(request);
request->compile_and_send_body();
}
void StaticPage::render(Request *request) {
void StaticPage::render_index(Request *request) {
request->body += data;
}

View File

@ -11,7 +11,7 @@ class StaticPage : public WebNode {
public:
void _handle_request_main(Request *request);
void render(Request *request);
void render_index(Request *request);
void render_preview(Request *request);
void load_file(const String &path);