From bf42a95568f5efffcc87a9b5a7683b7b270a098f Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Fri, 17 Apr 2015 23:49:55 -0300 Subject: replaced leg-based parser with handmade parser for templates yay! no leg parser needed anymore. parsers still needs some work and error handling, though. --- src/main.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/main.c') 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 #include "source-parser.h" +#include "template-parser.h" #include 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; } -- cgit v1.2.3-18-g5258