nerak repo

This commit is contained in:
2026-07-07 21:43:57 -05:00
committed by nightshade
commit 69ed104c9d
84 changed files with 5404 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#include <nerak.h>
config(app){
context("greeting",
"<html>"
"<head></head>"
"<body>"
"<p>Hello {{name}}</p>"
"</body>"
"</html>"
);
resource("home", "/",
.get = {
input({"name", .fallback = "world"}),
mustache("greeting", "hello"),
respond("hello")
}
);
}