For information about current developments and future releases, see:
http://maypole.perl.org/?TheRoadmap
+
+
+2.13 October 2007
+SVN Revision
+
+Bug Fixes :
+ DBD::SQLite no longer required by Makefile.PL
+ CGI handler now produces response for fatal error (bug 29981)
+Improvements :
+ link macro now takes a target argument, and has slightly better pod
+
2.121 29 August 2007
SVN revision 581
Class::DBI::Plugin::RetrieveAll => 0,
Class::DBI::Loader::Relationship => 0,
Class::DBI => 0.96,
- Class::DBI::SQLite => 0.08,
CGI::Untaint => 1.26,
CGI::Untaint::date => 0,
CGI::Untaint::email => 0,
use Maypole::Headers;
use Maypole::Constants;
-our $VERSION = '2.12';
+our $VERSION = '2.13';
__PACKAGE__->mk_accessors( qw/cgi/ );
=cut
-sub run
-{
- my $self = shift;
- return $self->handler;
+sub run {
+ my $self = shift;
+ my $status = $self->handler;
+ if ($status != OK) {
+ print <<EOT;
+Status: 500 Maypole application error
+Content-Type: text/html
+
+<title>Maypole application error</h1>
+<h1>Maypole application error</h1>
+EOT
+ }
+ return $status;
}
=head1 Implementation
use NEXT;
use File::MMagic::XS qw(:compat);
-our $VERSION = '2.121';
+our $VERSION = '2.13';
our $mmagic = File::MMagic::XS->new();
# proposed privacy conventions:
This creates an <A HREF="..."> to a command in the Apache::MVC system by
catenating the base URL, table, command, and any arguments.
+arguments are table, command, additional, label, target.
+
+target specifies a target for the link if provided.
+
#%]
[%
-MACRO link(table, command, additional, label) BLOCK;
+MACRO link(table, command, additional, label, target) BLOCK;
SET lnk = base _ "/" _ table _ "/" _ command _ "/" _ additional;
lnk = lnk | uri ;
- '<a href="' _ lnk _ '">';
+ IF target ;
+ '<a href="' _ lnk _ '" target="' _ target _'">';
+ ELSE;
+ '<a href="' _ lnk _ '">';
+ END;
label | html;
"</a>";
END;