Embed templates
This commit is contained in:
18
tmpls.h
Normal file
18
tmpls.h
Normal 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_
|
Reference in New Issue
Block a user