Sean Allen wrote:
> On Aug 25, 2008, at 9:39 PM, Stuart Johnston wrote:
> 
>> One thought on your posted solution.  If you were to create the  
>> translation object in your Perl and pass it in through the stash you  
>> wouldn't have to load the data files for each iteration.  That is  
>> assuming that you are using a persistent environment (mod_perl,  
>> etc). Also, this module might have some helpful ideas for you:
>>
> 
> It isnt loading the data files on each iteration. only if the files  
> mod date is more recent than the last load date does it change.

I should clarify that by "each iteration" I don't mean each translation 
but rather each $template->process.  Although, I actually don't know for 
sure whether TT2 reuses loaded plugins or not.  I'm only guessing. 
Whether this is an issue or not depends on your environment.

_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to