removed old template system and replaced with template asset

This commit is contained in:
JT Smith 2005-01-05 17:28:14 +00:00
parent 023ce77917
commit 4798ba497d
50 changed files with 614 additions and 660 deletions

View file

@ -19,7 +19,7 @@ use WebGUI::Asset;
use WebGUI::HTTP;
use WebGUI::Session;
use WebGUI::Storage;
use WebGUI::Template;
use WebGUI::Asset::Template;
our @ISA = qw(WebGUI::Asset);
@ -93,7 +93,7 @@ sub getBox {
$var{"attachment.name"} = $self->get("filename");
$var{"attachment.size"} = $self->getStorageLocation->getSize;
$var{"attachment.type"} = $self->getStorageLocation->getFileExtension;
return WebGUI::Template::process(1,"AttachmentBox",\%var);
return WebGUI::Asset::Template->new("PBtmpl0000000000000003")->process(\%var);
}
@ -224,7 +224,7 @@ sub view {
$var{controls} = $self->getToolbar;
$var{fileUrl} = $self->getFileUrl;
$var{fileIcon} = $self->getFileIconUrl;
return WebGUI::Template::process("1","FileAsset",\%var);
return WebGUI::Asset::Template->new("PBtmpl0000000000000024")->process(\%var);
}