mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
Renamed the render virtual to render_index.
This commit is contained in:
parent
001339fc60
commit
d4a636c15d
@ -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) {
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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) {
|
||||
|
@ -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();
|
||||
|
@ -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) {
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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) {
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user