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:
@@ -73,15 +73,8 @@ void insert_page_run(Info & i)
|
||||
insert_page_cur += 1;
|
||||
|
||||
info.run_content.Clear();
|
||||
info.ezc_gen.TrimWhite(gen_trim_white);
|
||||
info.ezc_gen.SkipNewLine(gen_skip_new_line);
|
||||
info.ezc_gen.RecognizeSpecialChars(gen_use_special_chars);
|
||||
info.ezc_gen.SetMax(config->ezc_max_elements, config->ezc_max_loop_elements);
|
||||
/*
|
||||
* !! IMPROVE ME
|
||||
* add blocks and variables
|
||||
* hmm may they are not needed here?
|
||||
*/
|
||||
|
||||
InitGenerator(info.ezc_gen);
|
||||
info.ezc_gen.SetPattern(*pat);
|
||||
info.ezc_gen.Generate(info.run_content);
|
||||
item_print_content(i.out, info.run_content.Str(), info.item.content_type);
|
||||
|
Reference in New Issue
Block a user