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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user