aboutsummaryrefslogtreecommitdiff
path: root/src/template.c
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-07-30 17:47:21 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-07-30 17:47:21 +0530
commit48016ebbe55051ea4745c57cbc937d2a66c22ef9 (patch)
tree21f32d36bfd2ca6aa7c40a46baeae38a18dcdbeb /src/template.c
parent7cc0394cd4ccdbab3ff6fabea0efdd20a3117fc2 (diff)
templates: move base.html into subdirectory
Diffstat (limited to 'src/template.c')
-rw-r--r--src/template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/template.c b/src/template.c
index 960ebc6..73b21e4 100644
--- a/src/template.c
+++ b/src/template.c
@@ -22,8 +22,8 @@
#include <engine.h>
#include <filehandler.h>
#include <lexer.h>
-#include <msg.h>
#include <mkdio.h>
+#include <msg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -37,7 +37,7 @@ template_create(void)
template_t *template = malloc(sizeof(template_t));
char *path;
- asprintf(&path, "%s/%s", msg->base_directory, BASE_TEMPLATE);
+ asprintf(&path, "%s/%s/%s", msg->base_directory, TEMPLATES, BASE_TEMPLATE);
FILE *base = fopen(path, "r");
free(path);