Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Text::Xslate::Bridge(3User Contributed Perl DocumentatiText::Xslate::Bridge(3)

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
       Text::Xslate

       Text::Xslate::Bridge::TT2

       Text::Xslate::Bridge::TT2Like

       Text::Xslate::Bridge::Alloy

perl v5.24.1			  2015-08-28	       Text::Xslate::Bridge(3)

NAME | SYNOPSIS | DESCRIPTION | INTERFACE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Text::Xslate::Bridge&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help