Make templates use .html extension
This commit is contained in:
4
routes.c
4
routes.c
@ -103,7 +103,7 @@ void route_page_not_found(struct mg_http_message *msg, Route_Result *result)
|
||||
defer { sb_free(&out); }
|
||||
|
||||
char path[PATH_MAX] = {0};
|
||||
if (!get_baked_resource_path("page-missing.t", path, sizeof(path))) {
|
||||
if (!get_baked_resource_path("page-missing.html", path, sizeof(path))) {
|
||||
make_internal_server_error(result);
|
||||
return;
|
||||
}
|
||||
@ -190,7 +190,7 @@ void route_home(struct mg_http_message *msg, Route_Result *result)
|
||||
defer { sb_free(&out); }
|
||||
|
||||
char path[PATH_MAX] = {0};
|
||||
if (!get_baked_resource_path("home.t", path, sizeof(path))) {
|
||||
if (!get_baked_resource_path("home.html", path, sizeof(path))) {
|
||||
make_internal_server_error(result);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user