X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage.pm;h=eedbec54e17d2e865b8ec4cfe6ddc96224d2ed03;hb=e57ca30a8f44b2af769c55bb09222bb4c170499b;hp=e0086507d16027ecdd5100512b83cfcf5ebb797a;hpb=a73373457a03facd0c96632a9c19150eda3f85f3;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page.pm b/lib/Gruntmaster/Page.pm index e008650..eedbec5 100644 --- a/lib/Gruntmaster/Page.pm +++ b/lib/Gruntmaster/Page.pm @@ -10,7 +10,7 @@ use File::Path qw/make_path/; use File::Slurp qw/write_file/; use IO::Compress::Gzip qw/gzip/; use IO::File; -use Gruntmaster::Data qw/PUBLISH/; +use Gruntmaster::Data; our $VERSION = '0.001'; our @generators; @@ -77,6 +77,17 @@ sub generate{ close $typemap; } +sub gensrc{ + my ($job) = @_; + my $ext = job_extension $job; + make_path "log/src/"; + write_file "log/src/$job.$ext", job_inmeta($job)->{files}{prog}{content}; +} + +sub genarticle{ + +} + 1; __END__ # Below is stub documentation for your module. You'd better edit it!