updated: to the new Ezc API

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@974 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2014-10-18 18:12:04 +00:00
parent 8196fb77d1
commit 5266a7e4e5
26 changed files with 864 additions and 676 deletions

View File

@@ -120,15 +120,26 @@ void Patterns::ReadPatterns(Template & templ)
size_t len = locale->Size();
templ.patterns.resize(len);
/*
* CHECK ME
* make sure everything else is set correctly from pattern_parser
* (default values)
*/
pattern_parser.DeleteWhiteTextItems(del_white_items);
pattern_parser.Directory(templates_dir, templates_dir_def);
for(size_t i=0 ; i<len ; ++i)
{
templ.patterns[i].DeleteWhiteTextItems(del_white_items);
templ.patterns[i].Directory(templates_dir, templates_dir_def);
templ.patterns[i].ParseFile(templ.file_name);
pattern_parser.ParseFile(templ.file_name, templ.patterns[i]);
if( ezc_fun )
templ.patterns[i].CacheFunctions(*ezc_fun);
/*
* IMPROVE ME
* add caching blocks
*/
locale_filter->Filter(templ.patterns[i], *locale, i);
}
}