rewrote the template api and added lots of caching options
This commit is contained in:
parent
6613992f3d
commit
20482def49
24 changed files with 252 additions and 100 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue