HTML::Latemp::GenMakeHelpers - A Latemp Utility Module.
version v0.5.0
use HTML::Latemp::GenMakeHelpers; my $generator = HTML::Latemp::GenMakeHelpers->new( 'hosts' => [ map { +{ 'id' => $_, 'source_dir' => $_, 'dest_dir' => "\$(ALL_DEST_BASE)/$_-homepage" } } (qw(common t2 vipe)) ], ); $generator->process_all();
Construct an object with the host defined in @hosts.
An optional parameter is 'filename_lists_post_filter' which must point to a subroutine that accepts a hash reference of 'host', 'bucket', and 'filenames' (which points to an array reference) and returns the modified list of filenames as an array reference (it is called separately for each host and bucket).
'filename_lists_post_filter'
'host'
'bucket'
'filenames'
An example for it is:
filename_lists_post_filter => sub { my ($args) = @_; my $filenames = $args->{filenames}; if ($args->{host} eq 'src' and $args->{bucket} eq 'IMAGES') { return [ grep { $_ !~ m#arrow-right# } @$filenames ]; } else { return $filenames; } },
(This parameter was added in version 0.5.0 of this module.)
Process all hosts.
Called by the constructor to initialize the object. Can be sub-classes by derived classes.
Returns an array reference of HTML::Latemp::GenMakeHelpers::HostEntry for the hosts.
Get the initial buckets for the host $host.
Get the processed buckets.
Get the files that were not placed in any bucket.
Sort the files into the buckets.
Get the makefile rules template for the host $host.
Process the host $host.
Shlomi Fish, http://www.shlomifish.org/ .
Please report any bugs or feature requests to bug-html-latemp-genmakehelpers@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTML-Latemp-GenMakeHelpers. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-html-latemp-genmakehelpers@rt.cpan.org
Copyright 2005 Shlomi Fish, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the MIT X11 License.
Shlomi Fish <shlomif@cpan.org>
This software is Copyright (c) 2005 by Shlomi Fish.
This is free software, licensed under:
The MIT (X11) License
Please report any bugs or feature requests on the bugtracker website http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTML-Latemp-GenMakeHelpers or by email to bug-html-latemp-genmakehelpers@rt.cpan.org.
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
You can find documentation for this module with the perldoc command.
perldoc HTML::Latemp::GenMakeHelpers
The following websites have more information about this module, and may be of help to you. As always, in addition to those websites please use your favorite search engine to discover more resources.
MetaCPAN
A modern, open-source CPAN search engine, useful to view POD in HTML format.
http://metacpan.org/release/HTML-Latemp-GenMakeHelpers
Search CPAN
The default CPAN search engine, useful to view POD in HTML format.
http://search.cpan.org/dist/HTML-Latemp-GenMakeHelpers
RT: CPAN's Bug Tracker
The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN.
https://rt.cpan.org/Public/Dist/Display.html?Name=HTML-Latemp-GenMakeHelpers
AnnoCPAN
The AnnoCPAN is a website that allows community annotations of Perl module documentation.
http://annocpan.org/dist/HTML-Latemp-GenMakeHelpers
CPAN Ratings
The CPAN Ratings is a website that allows community ratings and reviews of Perl modules.
http://cpanratings.perl.org/d/HTML-Latemp-GenMakeHelpers
CPAN Forum
The CPAN Forum is a web forum for discussing Perl modules.
http://cpanforum.com/dist/HTML-Latemp-GenMakeHelpers
CPANTS
The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
http://cpants.cpanauthors.org/dist/HTML-Latemp-GenMakeHelpers
CPAN Testers
The CPAN Testers is a network of smokers who run automated tests on uploaded CPAN distributions.
http://www.cpantesters.org/distro/H/HTML-Latemp-GenMakeHelpers
CPAN Testers Matrix
The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
http://matrix.cpantesters.org/?dist=HTML-Latemp-GenMakeHelpers
CPAN Testers Dependencies
The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
http://deps.cpantesters.org/?module=HTML::Latemp::GenMakeHelpers
Please report any bugs or feature requests by email to bug-html-latemp-genmakehelpers at rt.cpan.org, or through the web interface at https://rt.cpan.org/Public/Bug/Report.html?Queue=HTML-Latemp-GenMakeHelpers. You will be automatically notified of any progress on the request by the system.
bug-html-latemp-genmakehelpers at rt.cpan.org
The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :)
http://bitbucket.org/shlomif/latemp
hg clone ssh://hg@bitbucket.org/shlomif/latemp
To install HTML::Latemp::GenMakeHelpers, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Latemp::GenMakeHelpers
CPAN shell
perl -MCPAN -e shell install HTML::Latemp::GenMakeHelpers
For more information on module installation, please visit the detailed CPAN module installation guide.