Tiffany::Template::Declare - Tiffany gateway for Template::Declare
use Tiffany; { package MyPage; use Template::Declare::Tags; # defaults to 'HTML' use base 'Template::Declare'; template simple => sub { my ( $class, $name ) = @_; html { head {} body { p { "Hello, $name." }; } } }; } my $tmpl = Tiffany->load('Template::Declare', {dispatch_to => ['MyPage']}); like $tmpl->render('simple', 'john'), qr/Hello, john./;
Tokuhiro Matsuno
To install Tiffany, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tiffany
CPAN shell
perl -MCPAN -e shell install Tiffany
For more information on module installation, please visit the detailed CPAN module installation guide.