[SimBot-commits] CVS: simbot/plugins recap.pl,1.20,1.21
Status: Abandoned
Brought to you by:
kstange
|
From: Pete P. <fou...@us...> - 2005-08-10 03:47:53
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11218/plugins Modified Files: recap.pl Log Message: Use the base template when outputting for web. Index: recap.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/recap.pl,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -p -r1.20 -r1.21 --- recap.pl 29 Jul 2005 06:44:40 -0000 1.20 +++ recap.pl 9 Aug 2005 02:31:41 -0000 1.21 @@ -112,11 +112,16 @@ sub nick_change { } sub recap_page { - my ($request, $response) = @_; + my ($request, $response, $get_template) = @_; # $response->code(RC_OK); $response->push_header("Content-Type", "text/html"); - $response->content(&SimBot::htmlize(join("\n", @backlog))); + my $template = &$get_template('base'); + $template->param( + title => 'Recent Chatter', + content => &SimBot::htmlize(join("\n", @backlog)), + ); + $response->content($template->output()); } # Register Plugin |