[% '[% TAGS star %]' %]

This should work shouldn't it? I know I've seen this topic before, but for the life of me I can't find any mention of it.

Can't I print out tags? The reason is that I'd like to process some templates twice, once for mostly static data which is on cached pages, and the second time for context/user specific data.

This ties in with my previous question about setting CONFIG information AFTER the template has been instantiated.

In my previous question I thought I didn't have to worry about this issue because I would make my global function which returns a TT2 object a bit smarter, but maybe it's me who isn't smart enough.

I would think that I can have a global function:

sub templateOBJ {
$global->{template} = new Template({ABSOLUTE => 1}) if (!defined $global->{template});
return $global->{template};
}


And every time I need a template I call that function. From my understanding this allows me to cache Template objects in mod_perl.

BUT, if I want a Template with OUTPUT => $filename then how would I change the CONFIG for my global Template object?

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