/* * blogc: A blog compiler. * Copyright (C) 2015 Rafael G. Martins * * This program can be distributed under the terms of the BSD License. * See the file COPYING. */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include #include "source-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; }