GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Module::Starter::Plugin::TT2(3) User Contributed Perl Documentation Module::Starter::Plugin::TT2(3)

Module::Starter::Plugin::TT2 - TT2 templates for Module::Starter::Template

version 0.125

 use Module::Starter qw(
   Module::Starter::Simple
   Module::Starter::Plugin::Template
   Module::Starter::Plugin::TT2
     ...
 );

 Module::Starter->create_distro( ... );

This Module::Starter plugin is intended to be loaded after Module::Starter::Plugin::Template. It implements the "renderer" and "render" methods, required by the Template plugin. The methods are implemented with Template Toolkit.

This module's distribution includes a directory, "templates/dir", and a file "templates/inline" that contain stock templates for use with the InlineStore and DirStore plugins. The module itself contains default templates in its data section.

This module is meant to be used with the template stores in the SimpleStore distribution (although you could certainly write your own template store). If you only want to use the built-in templates, you could have lines like this in your config file ("~/.module-starter/config"):

 author: Lord Poncemby
 email: ponce@peerage.eng
 plugins: Module::Starter::Simple Module::Starter::Plugin::Template
  Module::Starter::Plugin::ModuleStore Module::Starter::Plugin::TT2
 template_module: Module::Starter::Plugin::TT2

(Where the plugins line is one line.) This tells Module::Starter to look for the templates in the data section of Module::Starter::Plugin::TT2, which isn't very interesting, since you'll end up getting the same effect as if you'd just used Module::Starter without plugins.

To override this behavior, you'd instruct Module::Starter to look somewhere else, either by changing the "template_module" setting, changing the MODULE_TEMPLATE_MODULE environment variable, or using a different template store altogether (q.v., SimpleStore or other plugins).

As implemented, this method just creates a new Template Toolkit engine and stores it in the Module::Starter object.

This method passes the given template contents and options to the TT2 renderer and returns the resulting document.

Ricardo SIGNES, "<rjbs@cpan.org>"

Copyright 2004-2006 Ricardo SIGNES, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

[%module%] - The fantastic new [%module%]!

version 0.001

Quick summary of what the module does.

Perhaps a little code snippet.

    use [%module%];

    my $foo = [%module%]->new;
    ...

A list of functions that can be exported. You can delete this section if you don't export anything, such as for a purely object-oriented module.

[%self.author%], "<[%self.email%]>"

Please report any bugs or feature requests to "bug-[%rtname%]@rt.cpan.org", 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 [%year%] [%self.author%], All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2008-09-15 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.