aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-17 23:49:55 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-17 23:49:55 -0300
commitbf42a95568f5efffcc87a9b5a7683b7b270a098f (patch)
tree4d3ea13c85bc34b609271ce0bf3b35cdf5a98c6f /src/main.c
parentda54782672331c68fc7c412f4ebe27a9738342eb (diff)
downloadblogc-bf42a95568f5efffcc87a9b5a7683b7b270a098f.tar.gz
blogc-bf42a95568f5efffcc87a9b5a7683b7b270a098f.tar.bz2
blogc-bf42a95568f5efffcc87a9b5a7683b7b270a098f.zip
replaced leg-based parser with handmade parser for templates
yay! no leg parser needed anymore. parsers still needs some work and error handling, though.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index d05c8d6..4e72b6e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -13,19 +13,13 @@
#include <stdio.h>
#include "source-parser.h"
+#include "template-parser.h"
#include <string.h>
int
main(int argc, char **argv)
{
- const char *a =
- "\n \nBOLA : guda\n\t\n\n\n\n"
- "CHUNDA: asd\n"
- "----\n"
- "{% block single_source %}\nbola\n\nzas\n";
- blogc_source_t *t = blogc_source_parse(a, strlen(a));
- printf("%s\n", t->content);
printf("Hello, World!\n");
return 0;
}