nerak repo

This commit is contained in:
2026-06-26 12:27:53 -05:00
committed by nightshade
commit f1c280583e
83 changed files with 5409 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#include <nerak.h>
config(main){
context("greeting",
"<html>"
"<head></head>"
"<body>"
"<p>Hello {{name}}</p>"
"</body>"
"</html>"
);
resource("home", "/",
.get = {
input({"name", .fallback = "world"}),
mustache("greeting", "hello"),
respond("hello")
}
);
}