diff options
author | Danny van Kooten <dannyvankooten@users.noreply.github.com> | 2020-03-12 14:19:24 +0100 |
---|---|---|
committer | Danny van Kooten <dannyvankooten@users.noreply.github.com> | 2020-03-12 14:19:24 +0100 |
commit | 616ff505f666d4d162e5d2d8c0238f8af6f79c40 (patch) | |
tree | bd475af1d3c7b200d38e6769d33c1bed77384d15 /src/hyde.c | |
parent | 83eee4d23f9da9e72238dd01d43b350ed5bc04f1 (diff) | |
download | unja-616ff505f666d4d162e5d2d8c0238f8af6f79c40.tar.gz unja-616ff505f666d4d162e5d2d8c0238f8af6f79c40.zip |
add first template tests
Diffstat (limited to 'src/hyde.c')
-rw-r--r-- | src/hyde.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |