aboutsummaryrefslogtreecommitdiff
path: root/src/template.h
blob: f65da47be8cc4a9cbd86fd31cd38a13fed8f3435 (plain)
1
2
3
4
5
6
7
8
9
10
#include "hashmap.h"
#include "vector.h"

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);