Hello html-template-users, I don't know anything about how html-template caches its templates.
I'm using file_cache, and I have many templates for different modules. I have two ways for handling it: 1. main.tmpl: <TMPL_INCLUDE "some_header.html"> <TMPL_IF _MODULE_MODULE1><TMPL_INCLUDE "modules/module1.tmpl"></TMPL_IF> <TMPL_IF _MODULE_MODULE2><TMPL_INCLUDE "modules/module2.tmpl"></TMPL_IF> ... <TMPL_INCLUDE "some_footer.html"> and perl code like this: my $tmpl = HTML::Template->new( ... filename => 'main.tmpl', file_cache => 1, file_cache_dir => './cache/' ); $tmpl->param("_MODULE_$current_module" => 1); 2. main.tmpl: <TMPL_INCLUDE "some_header.html"> <TMPL_VAR MODULE_OUTPUT> <TMPL_INCLUDE "some_footer.html"> and perl code like this: my $tmpl = HTML::Template->new( ... filename => 'main.tmpl', file_cache => 1, file_cache_dir => './cache/' ); my $mod_tmpl = HTML::Template->new( ... filename => $module_tmpl, file_cache => 1, file_cache_dir => './cache/' ); $tmpl->param(MODULE_OUTPUT => $mod_tmpl->output()); so, the question is: is there a difference in this methods when caching? and what is better? (maybe there is a third way). thanks. -- Best regards, Горький Юрий mailto:[EMAIL PROTECTED] ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users