An example with the url_for helper. It depends on more files. Take a look at it on the balde source code.
#include "templates/url_for.h"
{
balde_template_url_for(app, request, response);
return response;
}
{
gchar *str = g_strdup_printf("Hello, %s\n", name != NULL ? name : "World");
g_free(str);
return response;
}
int
main(int argc, char **argv)
{
return 0;
}