Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Text::Xslate::Bridge

Name Text::Xslate::Bridge
Version
Located at /usr/lib/x86_64-linux-gnu/perl5/5.34
File /usr/lib/x86_64-linux-gnu/perl5/5.34/Text/Xslate/Bridge.pm
Is Core No
Search CPAN for this module Text::Xslate::Bridge
Documentation Text::Xslate::Bridge
Module Details Text::Xslate::Bridge

NAME

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


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

__PACKAGE__->bridge(@mapping) :Void

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


SEE ALSO

the Text::Xslate manpage

the Text::Xslate::Bridge::TT2 manpage

the Text::Xslate::Bridge::TT2Like manpage

the Text::Xslate::Bridge::Alloy manpage

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026