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