aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-19 00:06:56 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-19 00:06:56 -0300
commit30e5e6890682d4759e6dcdfc833a666e0ab3f7a2 (patch)
treed225bd39fcf99b14bc5f9ad8c1bfeedb2d5ab04d /src/main.c
parentde39a41da62c4b3820b4805ddb7c4970c36bc257 (diff)
downloadblogc-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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 90e374c..a2c63ed 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);