19 lines
416 B
C
19 lines
416 B
C
#ifndef RENDER_H
|
|
#define RENDER_H
|
|
|
|
#include "fs.h"
|
|
|
|
typedef struct {
|
|
char *data;
|
|
size_t size;
|
|
size_t capacity;
|
|
} buffer_t;
|
|
|
|
void buffer_init(buffer_t *buf);
|
|
void buffer_append(buffer_t *buf, const char *str);
|
|
void buffer_free(buffer_t *buf);
|
|
void print_template(const char *base_path, const char *display_path);
|
|
void render_folder(buffer_t *buf, const char *base_path, const char *display_path);
|
|
|
|
#endif
|