> Explain? _find_file() is designed to work the same way as > HTML::Template::_find_file(). This is necessary because it > essentially > "predicts" the results of HTML::Template::_find_file(). If > they aren't > the same then you'll end up with HTML::Template::JIT able to find a > template file but unable to use HTML::Template to parse it!
I have my own module myTemplate which inherits from HTML::Template. It helps me to set some parameters and it redefines the _find_file method. My templates are in the following files... admin.param.lang-en.tmpl.html admin.param.lang-cz.tmpl.html admin.param.lang-sk.tmpl.html I can call HTML::Template->new( filename=>'admin.param.tmpl.html', language => 'sk' ) HTML::Template->new( filename=>'admin.param.tmpl.html', language => 'pl' ) The _find_file will look for the template in appropriate language. There are some rules defined like: - if user wants Polish and we don't have the translation yet offer English - if user wants Slovak and we don't have the translation yet offer English - etc. BTW: The templates are generated from a base template and the dictionary! So I don't have to modify HTML source in all the files if any change is needed. Do you think it will be possible to use similar model with HTML::Template::JIT? -- Petr Smejkal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
