diff options
Diffstat (limited to 'Cool/demos/view.cool.c')
| -rw-r--r-- | Cool/demos/view.cool.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Cool/demos/view.cool.c b/Cool/demos/view.cool.c new file mode 100644 index 0000000..458072e --- /dev/null +++ b/Cool/demos/view.cool.c @@ -0,0 +1,10 @@ +void Api(char *name, char *func, char *desc) { + cool_html_raw(COOL_SV(" <div class=\"api-card\">\n <h3 class=\"api-name\">")); + cool_html_txt(name, strlen(name)); + cool_html_raw(COOL_SV("</h3>\n <code class=\"language-c\">")); + cool_html_txt(func, strlen(func)); + cool_html_raw(COOL_SV(" </code>\n <div class=\"api-description\">\n ")); + cool_html_txt(desc, strlen(desc)); + cool_html_raw(COOL_SV("\n </div>\n </div>\n")); +} + |
