Clayton Scott wrote:
> Is there a way to package templates as plugins?
The easiest way I can think of off the top of my head is to use the
define_block() context method and hard-code your templates as strings.
Something like this:
package My::Plugin;
use base 'Template::Plugin';
sub new {
my ($class, $context) = @_;
$context->define_block( template1 => \"template 1 text..." );
$context->define_block( template2 => \"template 2 text..." );
# ...etc...
}
HTH
A
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates