in reply to HTML::Template question.
It sounds like you want to do dynamic includes (where the include file is different each run) in HTML::Template. The last time i wanted to do something like this, instead of includeing the file in the template, i put a scalar there, and then filled the scalar in with the output of the template in the perl code. Hmm that came out kinda garbeled. Instead of haveing HTML::Template do the include for you, you can figure out wich template you want included and get its output (inside your perl code), then store that output in a variable that is in the original template. Its a messy hack, but i believe its the only way to do this kinda thing in HTML::Template.
update: hardburn said it alot clearer than me ++
|
|---|