aboutsummaryrefslogtreecommitdiff
path: root/src/template.h
blob: cf21726c747612f5347f652be0e913a236dbe589 (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(const char *dirname);

void env_free(struct env *env);

char *template(struct env *env, const char *template_name, struct hashmap *ctx);

char *template_string(char *tmpl, struct hashmap *ctx);

char *read_file(char *filename);

#endif