MaCH repo

This commit is contained in:
2026-05-08 09:23:38 -05:00
committed by nightshade
commit 7b85f31749
75 changed files with 6017 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>"
)
}
}
}
};
}