MaCH repo
This commit is contained in:
10
01_hello_world_text/main.c
Normal file
10
01_hello_world_text/main.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <mach.h>
|
||||
|
||||
void mach(){
|
||||
resource("home", "/", .mime = m_txt,
|
||||
.get = {
|
||||
input({"name", m_not_empty, .fallback = "world"}),
|
||||
mustache(.template = "Hello {{name}}")
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user