Apache-PageKit
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
sub postamble {
return <<'ENDE';
patch_blib: pm_to_blib
test "$(PERLRUN_VERSION_GE_58)" && ( cd blib; $(PATCH) -V never -Elp1 <../patch_file.diff )
@$(TOUCH) $@
ENDE
}
sub tools_other {
my $t = shift->SUPER::tools_other(@_);
$t .= "PATCH = patch\n";
$t .= "PERLRUN_VERSION_GE_58 = " . ( $] >= 5.008 ) . "\n";
$t;
}
sub top_targets {
my $t = shift->SUPER::top_targets(@_);
if ( $] >= 5.008 ) {
$t =~ s!pure_all :: config pm_to_blib!pure_all :: config patch_blib!;
}
$t;
}
1;
#
# write the diff. so it can be easy removed from cvs one day.
lib/Apache/PageKit/View.pm view on Meta::CPAN
HAVE_MESSAGES => '[% END %]',
HAVE_NOT_MESSAGES => '[% END %]',
MESSAGES => '[% END %]'
);
sub new {
require Template;
require Template::Parser;
require Template::Context;
return shift->SUPER::new(@_);
}
sub fill_in_view {
my ($view) = @_;
# load record containing Template Toolkit object
my $record = $view->{record};
my %tt_params;
( run in 1.316 second using v1.01-cache-2.11-cpan-49f99fa48dc )