rewrote the template api and added lots of caching options

This commit is contained in:
JT Smith 2004-06-15 17:36:25 +00:00
parent 6613992f3d
commit 20482def49
24 changed files with 252 additions and 100 deletions

View file

@ -88,7 +88,7 @@ The unique identifier for the template to retrieve. Defaults to the style templa
sub process {
my %var;
$var{'body.content'} = shift;
my $templateId = shift;
my $templateId = shift || $session{page}{styleId};
if ($session{page}{makePrintable}) {
$templateId = $session{page}{printableStyleId};
} elsif ($session{page}{useAdminStyle} ne "" && $session{setting}{useAdminStyle}) {
@ -158,7 +158,7 @@ sub process {
';
}
}
return WebGUI::Template::process(getTemplate($templateId),\%var);
return WebGUI::Template::process($templateId,"style",\%var);
}