Go to the source code of this file.
Data Structures | |
| struct | s_cf_template |
| struct | s_cf_tpl_variable |
Typedefs | |
| typedef s_cf_template | t_cf_template |
| typedef s_cf_tpl_variable | t_cf_tpl_variable |
| typedef void(* | t_parse )(t_cf_template *) |
| typedef void(* | t_parse_mem )(t_cf_template *) |
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 *vname) |
Definition in file template.h.
|
|
This struct contains the necessary information about the template file. |
|
|
This structure defines a variable value |
|
|
This is the function type called when parsing (tpl_parse) a template file Definition at line 43 of file template.h. |
|
|
This is the function type called when parsing (tpl_pars_to_mem) a template file Definition at line 44 of file template.h. |
|
||||||||||||||||||||
|
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