blob: faa6f73e6db50ba1caca991c56289252f951302f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef REVELA_RENDER_H
#define REVELA_RENDER_H
#include <sys/stat.h>
#include "bstree.h"
#include "config.h"
#include "template.h"
#include "components.h"
struct render {
/* Unja environment */
struct env *env;
/* List of years with albums in each year */
struct vector *years;
/* List of albums */
struct vector *albums;
/* Hashmap used for all templates */
struct hashmap *common_vars;
/* Modification time for the templates dir */
struct timespec modtime;
bool dry_run;
};
bool render_make_index(struct render *, const char *path);
bool render_make_album(struct render *r, const char *path,
const struct album *album);
bool render_make_image(struct render *r, const char *path,
const struct image *image);
bool render_init(struct render *, const char *path, struct site_config *,
struct bstree *albums);
void render_deinit(struct render *);
#endif
|