MaCH repo

This commit is contained in:
2025-07-24 12:46:01 -05:00
committed by Nick Ricketts
commit 8cf670e0c0
78 changed files with 5397 additions and 0 deletions

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")
}
);
}