diff options
author | bbaetz%student.usyd.edu.au <> | 2002-02-13 11:27:20 +0100 |
---|---|---|
committer | bbaetz%student.usyd.edu.au <> | 2002-02-13 11:27:20 +0100 |
commit | e1235d08fc52ff4cb914efecda9b15c2b7943f5a (patch) | |
tree | 2673752da715c22fabf9bacc440e48a943afeb82 /quips.cgi | |
parent | 5938698d13c326114857aaebb34a0f7081e1d486 (diff) | |
download | bugzilla-e1235d08fc52ff4cb914efecda9b15c2b7943f5a.tar.gz bugzilla-e1235d08fc52ff4cb914efecda9b15c2b7943f5a.tar.xz |
Bug 100094 - use generic template handling code
r=mattyt, afranke
Diffstat (limited to 'quips.cgi')
-rwxr-xr-x | quips.cgi | 26 |
1 files changed, 6 insertions, 20 deletions
@@ -23,31 +23,17 @@ use diagnostics; use strict; -use vars ( %::FORM ); + +use vars qw( + %FORM + $template + $vars +); use lib qw(.); require "CGI.pl"; -# Use the template toolkit (http://www.template-toolkit.org/) -use Template; - -# Create the global template object that processes templates -my $template = Template->new( -{ - INCLUDE_PATH => "template/custom:template/default", - RELATIVE => 1, - PRE_CHOMP => 1, -}); - -# Define the global variables and functions that will be passed to the UI -# template. -my $vars = -{ - 'Param' => \&Param, - 'PerformSubsts' => \&PerformSubsts, -}; - my $action = $::FORM{'action'} || ""; if ($action eq "show") { |