The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Text::Xslate::Bridge - The adaptor base class to use other templates' methods

SYNOPSIS

    package Your::Bridge::SomeTemplate;

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

    __PACKAGE__->bride(
        scalar => \%SomeTemplate::scalar_methods,
        array  => \%SomeTemplate::array_methods,
        hash   => \%SomeTemplate::hash_methods,
    );

    # in your script

    use Text::Xslate;

    my $tx = Text::Xslate->new(
        function => {
            Your::Bridge::SomeTemplate->methods(-exclude => [qw(hash::keys hash::values)]),
        },
    );

DESCRIPTION

This module is the base class for adaptor classes.

SEE ALSO

Text::Xslate

Text::Xslate::Bridge::TT2

Text::Xslate::Bridge::Alloy