- TO DO
- SEE ALSO
- SOURCE AVAILABILITY
- COPYRIGHT AND LICENSE
dist_cooker - create a Perl distribution skeleton from personal templates
# from the command line, to create a distribution for Module::Name % dist_cooker Module::Name
dist_cooker builds a Perl distribution skeleton from template files. You create the templates however you like.
By default, I assume my own favorite values, and haven't made these customizable yet.
ttree(from Template) is in
- Your distribution template directory is ~/.templates/dist_cooker
- Your module template name is lib/Foo.pm
cook processes the templates, it provides definitions for these template variables:
- module => the package name (Foo::Bar)
- module_file => module file name (Bar.pm)
- module_dist => the distribution name (Foo-Bar)
Writing a subclass
To provide a different set of defaults, or more customizable behavior, create your own subclass of
Distribution::Cooker. Specialize the parts that you need.
Distribution::Cooker needs to provide a way for people to override the defaults without having to write a subclass.
Other modules, such as
Module:Starter, do a similar job but don't give you as much flexibility with your templates.
This module is in Github:
brian d foy,
COPYRIGHT AND LICENSE
Copyright (c) 2008-2013, brian d foy, All Rights Reserved.
You may redistribute this under the same terms as Perl itself.