aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-08-01 23:41:46 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-08-01 23:41:46 +0530
commit55ad22daa266c1f359b6dbc8b394140301d90bfa (patch)
treef731b400d9b68c6849b88e86aa074c79664c27a3 /src
parent60ff5669deca70067c50cd446b9c3a0ee99cc344 (diff)
template: match->directive
Diffstat (limited to 'src')
-rw-r--r--src/template.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/template.c b/src/template.c
index 877ca07..6c95f00 100644
--- a/src/template.c
+++ b/src/template.c
@@ -154,18 +154,18 @@ template_write(engine_t *engine, FILE *f, void *doc, bool is_markdown)
}
for (size_t i = 0; i < template->components->size; i++) {
- directive_t *match = list_get(template->components, i);
+ directive_t *directive = list_get(template->components, i);
- switch (match->type) {
+ switch (directive->type) {
case _RAW:
- fprintf(f, "%s", (char *) match->operands);
+ fprintf(f, "%s", (char *) directive->operands);
break;
case CONTENT: {
/* TODO: handle this gracefully */
if (!is_markdown) {
- char *content
- = find_contentfor_value(engine->content_headers, match->operands);
+ char *content = find_contentfor_value(engine->content_headers,
+ directive->operands);
fprintf(f, "%s", content);
}
break;