aboutsummaryrefslogtreecommitdiff
path: root/src/template.h
blob: 6defb02407486a6b7eac154105790aeeb629eb15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);

#endif