aboutsummaryrefslogtreecommitdiff
path: root/src/template.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/template.h')
-rw-r--r--src/template.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/template.h b/src/template.h
index 45a58fc..6defb02 100644
--- a/src/template.h
+++ b/src/template.h
@@ -1,10 +1,19 @@
+#ifndef UNJA_TEMPLATE_H
+#define UNJA_TEMPLATE_H
+
#include "hashmap.h"
#include "vector.h"
-
struct env;
+
struct env *env_new();
+
void env_free(struct env *env);
+
char *template(struct env *env, char *template_name, struct hashmap *ctx);
+
char *template_string(char *tmpl, struct hashmap *ctx);
-char *read_file(char *filename); \ No newline at end of file
+
+char *read_file(char *filename);
+
+#endif