webc v0.0.11
Write and deploy websites using the C Programming Language.
Loading...
Searching...
No Matches
template.h
Go to the documentation of this file.
1
32#ifndef WEBC_TEMPLATE_H
33#define WEBC_TEMPLATE_H
34#include "../webc-core.h"
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40typedef struct {
41 Cstr name;
42 Cstr link;
43 Cstr lang;
44 Cstr license;
45 Cstr version;
46 Cstr desc;
47 Cstr image;
48} Project;
49
50typedef struct {
51 Cstr title;
52 Cstr author;
53 Cstr about;
54 Cstr email;
55 Cstr github_username;
56 int year;
57 Cstr style_path;
58 Cstr lang;
59} Template;
60
61WEBCAPI void WEBC_TemplateFooter(char** buffer, Cstr author, size_t year);
62WEBCAPI void WEBC_TemplateContact(char** buffer, Cstr email, Cstr github_username);
63WEBCAPI void WEBC_TemplateSection(char** buffer, Cstr title);
64WEBCAPI void WEBC_TemplateSidebar(char** buffer, Template portfolio, BlockContents links);
65
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif // WEBC_TEMPLATE_H
72
Definition template.h:40
Definition template.h:50