Inline module template files
version 0.144
use Module::Starter qw( Module::Starter::Simple Module::Starter::Plugin::Template Module::Starter::Plugin::InlineStore ... ); Module::Starter->create_distro( ... );
This Module::Starter plugin is intended to be loaded after Module::Starter::Plugin::Template. It implements the \*(C`templates\*(C' method, required by the Template plugin. The \*(C`InlineStore\*(C' plugin stores all the required templates in a single file, delimited with filenames between triple-underscores. In other words, a very simple template file might look like this:
_\|_\|_Module.pm_\|_\|_ package {modulename}; 1; _\|_\|_Makefile.PL_\|_\|_ die "lousy template"
Originally, this module was to use Inline::Files, or at least standard double-underscore indication of file names, but it's just simpler this way. Patches welcome.
This method reads in the template file (described above) and populates the object's \*(C`templates\*(C' attribute. The module template file is found by checking the \s-1MODULE_TEMPLATE_FILE\s0 environment variable and then the \*(L"template_file\*(R" config option.
Ricardo \s-1SIGNES\s0, \*(C`<[email protected]>\*(C'
Please report any bugs or feature requests to \*(C`[email protected]\*(C', or through the web interface at <http://rt.cpan.org>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
Copyright 2004 Ricardo \s-1SIGNES\s0, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.