diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-04-15 20:01:17 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-04-15 19:26:45 -0300 |
commit | ec86e13f144d4d8de6a93b8b04117ea5028893d1 (patch) | |
tree | e0413858979d9e517529ff528038ffbf2dc5e044 /src/main.c | |
parent | 0b694d89cefae8e8ca3422bbdbfbca4d5920ac4b (diff) | |
download | blogc-ec86e13f144d4d8de6a93b8b04117ea5028893d1.tar.gz blogc-ec86e13f144d4d8de6a93b8b04117ea5028893d1.tar.bz2 blogc-ec86e13f144d4d8de6a93b8b04117ea5028893d1.zip |
added template grammar
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -12,10 +12,16 @@ #include <stdio.h> +#include "template-grammar.h" + int main(int argc, char **argv) { + b_slist_t *t = blogc_template_parse( + "<html>{{ BOLA }}</html>\n" + "{% block single_source %}\n"); + printf("%s\n", (char*) ((blogc_template_stmt_t*)t->next->next->next->data)->value); printf("Hello, World!\n"); return 0; } |