aboutsummaryrefslogtreecommitdiff
path: root/src/template.h
diff options
context:
space:
mode:
authorDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-17 16:12:55 +0100
committerDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-17 16:12:55 +0100
commitf5f04edbf832aa2e219c621b9895c33dce3e47ba (patch)
tree5f99786426b1df0402f3c6d61b590a2376c05862 /src/template.h
parent735d8becf2595c8fee990b55e2d323317f019c8d (diff)
downloadunja-f5f04edbf832aa2e219c621b9895c33dce3e47ba.tar.gz
unja-f5f04edbf832aa2e219c621b9895c33dce3e47ba.zip
first stab at supporting template inheritance
Diffstat (limited to 'src/template.h')
-rw-r--r--src/template.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/template.h b/src/template.h
index 36d540d..f65da47 100644
--- a/src/template.h
+++ b/src/template.h
@@ -3,3 +3,8 @@
char *read_file(char *filename);
char *template(char *tmpl, struct hashmap *ctx);
+
+struct env;
+struct env *env_new();
+void env_free(struct env *env);
+char *render(struct env *env, char *template_name, struct hashmap *ctx); \ No newline at end of file