A static site generator, written in C
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cms_template.h 465B

12345678910111213141516171819202122232425
  1. #ifndef CMS_TEMPLATE_H
  2. #define CMS_TEMPLATE_H
  3. #include "cms_err.h"
  4. typedef struct cms_template_arg
  5. {
  6. char* key;
  7. char* val;
  8. } cms_template_arg;
  9. typedef struct cms_template_args
  10. {
  11. cms_template_arg* arguments;
  12. size_t argnum;
  13. size_t allocd;
  14. } cms_template_args;
  15. cms_template_args* cms_template_args_create();
  16. cms_err* cms_template_args_append(cms_template_args* args, char* key, char* val);
  17. char* cms_templateify(char* str, cms_template_args* args);
  18. #endif