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} Template;
59
60WEBCAPI void WEBC_TemplateFooter(char** buffer, Cstr author, size_t year);
61WEBCAPI void WEBC_TemplateContact(char** buffer, Cstr email, Cstr github_username);
62WEBCAPI void WEBC_TemplateSection(char** buffer, Cstr title);
63WEBCAPI void WEBC_TemplateSidebar(char** buffer, Template portfolio, BlockContents links);
64
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif // WEBC_TEMPLATE_H
71
Definition template.h:40
Definition template.h:50