Text::Xslate::Bridge(3pm)

Text::Xslate::Bridge3pm

The interface base class to import methods

Usage

    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)]],
        ],
    );

Overview

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.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

From libtext-xslate-perl 3.5.9-2+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.