Embed templates

This commit is contained in:
kamkow1
2025-06-09 22:10:49 +02:00
parent ac48e49ecc
commit a8c5d7817d
8 changed files with 84 additions and 4 deletions

18
tmpls.h Normal file
View File

@ -0,0 +1,18 @@
#ifndef TMPLS_H_
#define TMPLS_H_
#define TMPL_HOME "home.t"
#define TMPL_PAGE_MISSING "page-missing.t"
typedef struct {
char *key;
int value;
} Template;
extern Template *tmpls;
void tmpls_init(void);
void tmpls_deinit(void);
void tmpl_get_path_by_key(char *key, char *buf, size_t size);
#endif // TMPLS_H_