Static template generator for C
git clone git://soophie.de/ductape
36
};37
ctl_fn(&html, ctx);38
http_resp_t response = http_resp_create(HTTP_STATUS_OK);39
http_header_set(&response, "Content-Type", "text/html");40
http_resp_body_set(&response, html, strlen(html));39
http_resp_header(&response, "Content-Type", "text/html");40
http_resp_body(&response, html, strlen(html));41
free(html);42
return response;43
}
50
};51
fn(&html, ctx);52
http_resp_t response = http_resp_create(HTTP_STATUS_OK);53
http_header_set(&response, "Content-Type", "text/html");54
http_resp_body_set(&response, html, strlen(html));53
http_resp_header(&response, "Content-Type", "text/html");54
http_resp_body(&response, html, strlen(html));55
free(html);56
return response;57
}