#include "config.h"
#include "defines.h"
#include <dlfcn.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include "utils.h"
#include "hashlib.h"
#include "template.h"
Go to the source code of this file.
Functions | |
| int | tpl_cf_init (t_cf_template *tpl, const u_char *fname) |
| void | tpl_cf_setvar (t_cf_template *tpl, u_char *vname, const u_char *value, int len, int escapehtml) |
| int | tpl_cf_appendvar (t_cf_template *tpl, u_char *vname, const u_char *value, int len) |
| void | tpl_cf_freevar (t_cf_template *tpl, u_char *vname) |
| void | tpl_cf_parse (t_cf_template *tpl) |
| void | tpl_cf_parse_to_mem (t_cf_template *tpl) |
| void | tpl_cf_finish (t_cf_template *tpl) |
| const t_cf_tpl_variable * | tpl_cf_getvar (t_cf_template *tpl, u_char *name) |
Definition in file template.c.
|
||||||||||||||||||||
|
This function appends a string to the value of the specified variable.
Definition at line 104 of file template.c. |
|
|
This function destroys a template file structure. It closes the template file, frees the parsed content and destroys the variables.
Definition at line 171 of file template.c. |
|
||||||||||||
|
This function unsets a template variable.
Definition at line 124 of file template.c. |
|
||||||||||||
|
This function returns the value of a template variable.
Definition at line 187 of file template.c. |
|
||||||||||||
|
This function loads a template file and initializes the template structure.
Definition at line 58 of file template.c. |
|
|
This function will parse a template file and print out the parsed content. No memory is allocated, this should be very fast.
Definition at line 136 of file template.c. |
|
|
This function parses a template file and store the parsed content into the string structure parsed in the template file structure.
Definition at line 154 of file template.c. |
|
||||||||||||||||||||||||
|
This function sets a template variable to a specified value.
Definition at line 82 of file template.c. |
1.3.5