|
NAMETiffany::Template::Declare - Tiffany gateway for Template::DeclareSYNOPSISuse 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./; AUTHORTokuhiro Matsuno
Visit the GSP FreeBSD Man Page Interface. |