MooseX::Templated::Role is a Perl module with the role to render a Moose class with template.
SYNOPSIS
Farm/Cow.pm
package Farm::Cow;
use Moose;
with 'MooseX::Templated::Role';
has 'spots' => ( is => 'rw' );
has 'hobbies' => ( is => 'rw', default => sub { ['mooing', 'chewing'] } );
sub moo { "Moooooooo!" }
Farm/Cow.tt
This cow has [% self.spots %] spots - it likes
[% self.hobbies.join(" and ") %].
[% self.moo %]!
Elsewhere on the Farm...
my $cow = Farm::Cow->new( spots => '8' );
$cow->render();
# This cow has 8 spots - it likes
# mooing and chewing.
# Moooooooo!
Product's homepage
Requirements:
· Perl