aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc/renderer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/blogc/renderer.h')
-rw-r--r--src/blogc/renderer.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/blogc/renderer.h b/src/blogc/renderer.h
new file mode 100644
index 0000000..f7f5328
--- /dev/null
+++ b/src/blogc/renderer.h
@@ -0,0 +1,24 @@
+/*
+ * blogc: A blog compiler.
+ * Copyright (C) 2015-2016 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+ *
+ * This program can be distributed under the terms of the BSD License.
+ * See the file LICENSE.
+ */
+
+#ifndef _RENDERER_H
+#define _RENDERER_H
+
+#include <stdbool.h>
+#include "../common/utils.h"
+
+const char* blogc_get_variable(const char *name, sb_trie_t *global, sb_trie_t *local);
+char* blogc_format_date(const char *date, sb_trie_t *global, sb_trie_t *local);
+char* blogc_format_variable(const char *name, sb_trie_t *global, sb_trie_t *local,
+ sb_slist_t *foreach_var);
+sb_slist_t* blogc_split_list_variable(const char *name, sb_trie_t *global,
+ sb_trie_t *local);
+char* blogc_render(sb_slist_t *tmpl, sb_slist_t *sources, sb_trie_t *config,
+ bool listing);
+
+#endif /* _RENDERER_H */