From 5881f4bbf09b9c29b0f79763a2338cd04e4f698c Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 30 Oct 2021 23:33:37 +0200 Subject: [PATCH] Ported the menu. --- app/mourne_application.cpp | 260 +++++++++++++++++++++++-------------- app/mourne_application.h | 1 - 2 files changed, 164 insertions(+), 97 deletions(-) diff --git a/app/mourne_application.cpp b/app/mourne_application.cpp index a4d85a0..087b624 100644 --- a/app/mourne_application.cpp +++ b/app/mourne_application.cpp @@ -20,6 +20,25 @@ void MourneApplication::index(Object *instance, Request *request) { add_menu(request, MENUENTRY_NEWS); + /* + + + + + 2): ?> + + + + + + + + + + + */ + + //dynamic_cast(instance)->index(request); request->body += "test"; request->compile_and_send_body(); @@ -36,7 +55,144 @@ void MourneApplication::session_middleware_func(Object *instance, Request *reque void MourneApplication::add_menu(Request *request, const MenuEntries index) { request->head += menu_head; - request->body += menu_strings[index]; + + HTMLBuilder b; + + HTMLTag *t; + +/* + +