From 616ff505f666d4d162e5d2d8c0238f8af6f79c40 Mon Sep 17 00:00:00 2001 From: Danny van Kooten Date: Thu, 12 Mar 2020 14:19:24 +0100 Subject: add first template tests --- src/hyde.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/hyde.c') 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 #include 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 -- cgit v1.2.3