++ed by:
MARKSTOS YUUKI

2 PAUSE user(s)
2 non-PAUSE user(s).

MATSUNO★…Tokuhiro
and 4 contributors

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