summaryrefslogtreecommitdiff
path: root/web/src
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-05-18 16:52:53 +0500
committerilotterytea <iltsu@alright.party>2024-05-18 16:52:53 +0500
commita83917beb806596988762943d3173a0109dc4a4d (patch)
tree45afdd2a930bd21a674e26fa7776657a2a9340c5 /web/src
parent8f3abd66d3d0a70c9dbd790e430bf8690f58c49f (diff)
feat: mustache templates
Diffstat (limited to 'web/src')
-rw-r--r--web/src/main.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/web/src/main.cpp b/web/src/main.cpp
index 248328f..2b4aaba 100644
--- a/web/src/main.cpp
+++ b/web/src/main.cpp
@@ -1,9 +1,15 @@
#include "crow/app.h"
+#include "crow/mustache.h"
int main(int argc, char *argv[]) {
crow::SimpleApp app;
- CROW_ROUTE(app, "/")([]() { return "hi"; });
+ CROW_ROUTE(app, "/")
+ ([]() {
+ auto page = crow::mustache::load_text("index.html");
+
+ return page;
+ });
app.multithreaded().port(18083).run();
return 0;