Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Tiffany::Template::DecUser(Contributed Perl DocumTiffany::Template::Declare(3)

NAME
       Tiffany::Template::Declare - Tiffany gateway for	Template::Declare

SYNOPSIS
	   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./;

AUTHOR
       Tokuhiro	Matsuno

perl v5.32.1			  2021-08-28	 Tiffany::Template::Declare(3)

NAME | SYNOPSIS | AUTHOR

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Tiffany::Template::Declare&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help