1Text::Xslate::Bridge(3)User Contributed Perl DocumentatioTnext::Xslate::Bridge(3)
2
3
4

NAME

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

SYNOPSIS

9           package SomeTemplate::Bridge::Xslate;
10
11           use parent qw(Text::Xslate::Bridge);
12
13           __PACKAGE__->bridge(
14               nil    => \%nil_methods,
15               scalar => \%scalar_methods,
16               array  => \%array_methods,
17               hash   => \%hash_methods,
18
19               function => \%functions,
20           );
21
22           # in your script
23
24           use Text::Xslate;
25
26           my $tx = Text::Xslate->new(
27               module => [
28                   'SomeTemplate::Bridge::Xslate'
29                       => [-exclude => [qw(hash::keys hash::values)]],
30               ],
31           );
32

DESCRIPTION

34       This module is the base class for adaptor classes.
35

INTERFACE

37   "__PACKAGE__->bridge(@mapping) :Void"
38       Install a bridge module that has method @mapping.  See
39       "example/bridge.pl" for more an example.
40

SEE ALSO

42       Text::Xslate
43
44       Text::Xslate::Bridge::TT2
45
46       Text::Xslate::Bridge::TT2Like
47
48       Text::Xslate::Bridge::Alloy
49
50
51
52perl v5.36.0                      2023-01-20           Text::Xslate::Bridge(3)
Impressum