added: two options to the config:
ezc_error_prefix (string) ezc_error_postfix (string) // prefix and postfix used when there is an error in Ezc patterns // default: // prefix: "<!-- " // postfix: " -->" added: Ezc::Blocks to templates added: although patterns have pointers to functions and blocks cached the Ezc::Generator should use SetFunctions() and SetBlocks() method in order to correctly recognize variables (aliases) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@978 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -354,15 +354,8 @@ void thread_sort_tab_run(Info & i)
|
||||
Ezc::Pattern * p = pattern_cacher.GetPattern(*thread_info.item_sort_tab[item_sort_index]);
|
||||
|
||||
item_run_content.Clear();
|
||||
ezc_generator.TrimWhite(gen_trim_white);
|
||||
ezc_generator.SkipNewLine(gen_skip_new_line);
|
||||
ezc_generator.RecognizeSpecialChars(gen_use_special_chars);
|
||||
ezc_generator.SetMax(config->ezc_max_elements, config->ezc_max_loop_elements);
|
||||
InitGenerator(ezc_generator);
|
||||
ezc_generator.SetPattern(*p);
|
||||
/*
|
||||
* IMPROVE ME
|
||||
* set variables and blocks (functions are cached)
|
||||
*/
|
||||
ezc_generator.Generate(item_run_content);
|
||||
|
||||
item_print_content(i.out, item_run_content.Str(), thread_info.item_sort_tab[item_sort_index]->content_type);
|
||||
|
Reference in New Issue
Block a user