Embed templates

This commit is contained in:
kamkow1
2025-06-09 22:10:49 +02:00
parent ac48e49ecc
commit a8c5d7817d
8 changed files with 84 additions and 4 deletions

3
main.c
View File

@ -10,6 +10,7 @@
#include "routes.h"
#include "gpp.h"
#include "tmpls.h"
typedef void (*Route_Handler)(struct mg_connection *conn, struct mg_http_message *msg);
@ -44,6 +45,7 @@ static void init_route_hashtable(void)
int main(int argc, char ** argv)
{
gpp_init();
tmpls_init();
mg_log_set(MG_LL_DEBUG);
struct mg_mgr mgr;
@ -60,6 +62,7 @@ int main(int argc, char ** argv)
mg_mgr_free(&mgr);
shfree(route_hashtable);
tmpls_deinit();
gpp_deinit();
return 0;