aboutsummaryrefslogtreecommitdiff
path: root/src/hyde.c
diff options
context:
space:
mode:
authorDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-12 14:19:24 +0100
committerDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-12 14:19:24 +0100
commit616ff505f666d4d162e5d2d8c0238f8af6f79c40 (patch)
treebd475af1d3c7b200d38e6769d33c1bed77384d15 /src/hyde.c
parent83eee4d23f9da9e72238dd01d43b350ed5bc04f1 (diff)
downloadunja-616ff505f666d4d162e5d2d8c0238f8af6f79c40.tar.gz
unja-616ff505f666d4d162e5d2d8c0238f8af6f79c40.zip
add first template tests
Diffstat (limited to 'src/hyde.c')
-rw-r--r--src/hyde.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/hyde.c b/src/hyde.c
index 172f15d..bab2513 100644
--- a/src/hyde.c
+++ b/src/hyde.c
@@ -1,4 +1,5 @@
#include "template.h"
+#include <stdio.h>
#include <stdlib.h>
int main() {
@@ -21,7 +22,9 @@ int main() {
};
hashmap_insert(ctx, "posts", &posts);
- template(input, ctx);
+ char *output = template(input, ctx);
+ printf("Output: %s\n", output);
hashmap_free(ctx);
free(input);
+ free(output);
} \ No newline at end of file