MaCH repo

This commit is contained in:
2026-05-07 20:53:01 -05:00
committed by nightshade
commit 3c5db2e6f7
75 changed files with 6001 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#include <mach.h>
config mach(){
return (config) {
.resources = {
{"home", "/",
.get = {
input({"name", .validate = v_not_empty, .fallback = "world"}),
render(.template =
"<html>"
"<head></head>"
"<body>"
"<p>Hello {{name}}</p>"
"</body>"
"</html>"
)
}
}
}
};
}