MaCH repo

This commit is contained in:
2025-07-24 12:46:01 -05:00
committed by Nick Ricketts
commit 35a9871490
75 changed files with 6030 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#include <mach.h>
config mach(){
return (config) {
.resources = {
{"home", "/",
.get = {
input({"name", .matches = m_not_empty, .fallback = "world"}),
render(.template =
"<html>"
"<head></head>"
"<body>"
"<p>Hello {{name}}</p>"
"</body>"
"</html>"
)
}
}
}
};
}