diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-04-19 00:06:56 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-04-19 00:06:56 -0300 |
commit | 30e5e6890682d4759e6dcdfc833a666e0ab3f7a2 (patch) | |
tree | d225bd39fcf99b14bc5f9ad8c1bfeedb2d5ab04d /src/main.c | |
parent | de39a41da62c4b3820b4805ddb7c4970c36bc257 (diff) | |
download | blogc-30e5e6890682d4759e6dcdfc833a666e0ab3f7a2.tar.gz blogc-30e5e6890682d4759e6dcdfc833a666e0ab3f7a2.tar.bz2 blogc-30e5e6890682d4759e6dcdfc833a666e0ab3f7a2.zip |
added renderer, without tests
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -18,6 +18,7 @@ #include "source-parser.h" #include "template-parser.h" #include "loader.h" +#include "renderer.h" #include "error.h" @@ -102,7 +103,9 @@ main(int argc, char **argv) goto cleanup3; } - printf("%d\n", s == NULL); + char *out = blogc_render(l, s); + printf("%s", out); + free(out); cleanup3: b_slist_free_full(s, blogc_source_free); |