Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Module::Install::Template 0.05

    Download button

    No screenshots available
    Downloads: 399  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Marcel Grünauer | More programs
    Perl Artistic License / FREE
    April 17th, 2008, 15:03 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Module::Install::Template description

    Module::Install::Template can treat module source code as a template.

    Module::Install::Template can treat module source code as a template.

    SYNOPSIS

    Makefile.PL:

    ...

    process_templates(
    first_year => 2007,
    rest_from => "$ENV{HOME}/.mitlib/standard_pod",
    start_tag => '{%',
    end_tag => '%}',
    );

    ...

    This module, if used in the Makefile.PL as shown in the synopsis, treats module source code files as templates and processes them with the Template Toolkit during make time.

    That is, lib/ is expected to contain templates, and blib/lib/ will contain the resulting files as processed by the Template Toolkit.

    This only happens on the author's side. The end-user will not notice any of it.

    This module provides one subroutine: process_templates(). It takes named arguments. Of these, start_tag and end_tag are treated specially and used for the template's start and end tag definitions. rest_from instructs this module to look for distribution attributes (version, perl_version, author, license, abstract) that haven't been set yet in the given file.

    For example, you might have some standard POD template that you use in all your modules - standard stuff like installation, availability, author, copyright notices and so on. You could have that in the special directory ~/.mitlib (mit here stands for 'Module::Install::Template'). Because of that, the Module::Install directive all_from won't work properly. With rest_from you can instruct this module to take the remaining distribution attributes from your standard template.

    The Makefile had to be slightly patched so that make dist still works - normally make dist takes files from lib/, but here these are the templates. We are interested in the finished files, so we override the relevant Makefile portions to use blib/lib/ instead.

    This documentation is somewhat lacking - I'll try to improve it.

    Because of the Makefile munging, this module might not work for distributions that use XS or SWIG.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    module installation | module template | Perl module | Perl | module | template

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM