/**********************************/
/* Templating library, for bloged */
/* published under GPL.           */
/**********************************/

typedef struct _varval_st varval_st;
struct _varval_st
{
  char *_tpl_var;
  char *_tpl_val;
  varval_st *next;
};

/* First argument was the chained list Head pointer */
/* Parse __tpl_file and fprintf to __out */

void parse_template (varval_st *_z_struct_varval, FILE *__out, char *__tpl_file);
varval_st *add_tpl_value (varval_st *_z_struct_varval, char *__tpl_var, char *__tpl_val);
varval_st *del_tpl_var (varval_st *list, char *_var);