Is it possible to set configuration variables AFTER you have created the Template object?

Generally I call Templates into existence via a:
$template = &get_cached_template;
function so I can take advantage of the caching (I think I am doing this the right way)


But sometimes I want to do { OUTPUT => \$output } and sometimes I don't.

So when I want to change the OUTPUT then I have to:
$template_output = new Template({OUTPUT => \$output});
which I believe misses out on the benefits of caching...

Ideally I'd like to do this:
$template = &get_cached_template;
$template->{OUTPUT} = \$output;

But I haven't seen if it's possible, and Template.pm doesn't seem to have any "new" subroutine which *really* throws me for a loop...

Actually I guess I could just make &get_cached_template a little smarter... that would make sense in this case, ok, but the original question still stands for curiousity sake...

Thanks!!

Tosh
--
McIntosh Cooey - Twelve Hundred Group LLC - http://www.1200group.com/


_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to