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  -  TEXT::XSLATE::BRIDGE (3)

.ds Aq ’

NAME

Text::Xslate::Bridge - The interface base class to import methods

CONTENTS

SYNOPSIS



    package SomeTemplate::Bridge::Xslate;

    use parent qw(Text::Xslate::Bridge);

    __PACKAGE__->bridge(
        nil    => \%nil_methods,
        scalar => \%scalar_methods,
        array  => \%array_methods,
        hash   => \%hash_methods,

        function => \%functions,
    );

    # in your script

    use Text::Xslate;

    my $tx = Text::Xslate->new(
        module => [
            SomeTemplate::Bridge::Xslate
                => [-exclude => [qw(hash::keys hash::values)]],
        ],
    );



DESCRIPTION

This module is the base class for adaptor classes.

INTERFACE

CW__PACKAGE__->bridge(@mapping) :Void

Install a bridge module that has method @mapping. See example/bridge.pl for more an example.

SEE ALSO

Text::Xslate

Text::Xslate::Bridge::TT2

Text::Xslate::Bridge::TT2Like

Text::Xslate::Bridge::Alloy

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 TEXT::XSLATE::BRIDGE (3) 2015-08-28

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