MaCH repo

This commit is contained in:
2026-06-02 12:14:56 -05:00
committed by nightshade
commit 8a4cfec8e9
78 changed files with 5300 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#include <mach.h>
mach(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")
}
);
}