]> iEval git - plack-app-gruntmaster.git/blobdiff - lib/Gruntmaster/Page.pm
Add gruntmaster-paged
[plack-app-gruntmaster.git] / lib / Gruntmaster / Page.pm
index bce618c92b4216900b5327b908a4eeaecdbcd3ae..9fad273e81393639ae9324afad70c89fc332d940 100644 (file)
@@ -4,13 +4,14 @@ use 5.014000;
 use strict;
 use warnings;
 use parent qw/Exporter/;
-our @EXPORT_OK = qw/generate/;
+our @EXPORT_OK = qw/generate _generate/;
 
 use Fcntl qw/:flock/;
 use File::Basename qw/fileparse/;
 use File::Slurp qw/write_file/;
 use IO::Compress::Gzip qw/gzip/;
 use IO::File;
+use Gruntmaster::Data qw/PUBLISH/;
 
 our $VERSION = '0.001';
 our @generators;
@@ -44,7 +45,7 @@ sub declaregen{
        declaregen 'Pb::Entry'          => qr,^${contest}pb/$component$,;
 }
 
-sub generate{
+sub _generate{
        my ($path) = @_;
        my ($path_noext, $ext) = $path =~ m/^(.*)\.(.*)$/;
        my $basename = fileparse $path_noext;
@@ -74,6 +75,10 @@ sub generate{
        close $typemap;
 }
 
+sub generate{
+       PUBLISH 'genpage', shift;
+}
+
 1;
 __END__
 # Below is stub documentation for your module. You'd better edit it!
This page took 0.022999 seconds and 4 git commands to generate.