diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-01-08 02:36:17 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-01-08 02:36:17 +0100 |
commit | 56a5ebf7f0b0d86b7d6e3fd468d3415da312e69b (patch) | |
tree | 1405b183551c93baf575d1efda5e65f461d7c36b /src/renderer.h | |
parent | fc0e0f4c2415b816daaca8d292aada532be19faa (diff) | |
download | blogc-56a5ebf7f0b0d86b7d6e3fd468d3415da312e69b.tar.gz blogc-56a5ebf7f0b0d86b7d6e3fd468d3415da312e69b.tar.bz2 blogc-56a5ebf7f0b0d86b7d6e3fd468d3415da312e69b.zip |
renderer: handle FOREACH_ITEM as a normal variable
Diffstat (limited to 'src/renderer.h')
-rw-r--r-- | src/renderer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/renderer.h b/src/renderer.h index de26e98..d99fea0 100644 --- a/src/renderer.h +++ b/src/renderer.h @@ -14,7 +14,8 @@ const char* blogc_get_variable(const char *name, b_trie_t *global, b_trie_t *local); char* blogc_format_date(const char *date, b_trie_t *global, b_trie_t *local); -char* blogc_format_variable(const char *name, b_trie_t *global, b_trie_t *local); +char* blogc_format_variable(const char *name, b_trie_t *global, b_trie_t *local, + b_slist_t *foreach_var); b_slist_t* blogc_split_list_variable(const char *name, b_trie_t *global, b_trie_t *local); char* blogc_render(b_slist_t *tmpl, b_slist_t *sources, b_trie_t *config, |