GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TIFFANY::TEMPLATE::DECLARE (3)

.ds Aq ’

NAME

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

CONTENTS

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
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 TIFFANY::TEMPLATE::DECLARE (3) 2016-03-18

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.