The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

CGI::Ex::Template::XS - XS version of key parts of CGI::Ex::Template

SYNOPSIS

    use CGI::Ex::Template::XS;

    my $obj = CGI::Ex::Template::XS->new;

    # see the CGI::Ex::Template documentation

DESCRIPTION

This is an attempt to get XS speeds for the CGI::Ex::Template functionality.

All of the methods of CGI::Ex::Template are available. All configuration parameters, and all output should be the same. You should be able to use this package directly in place of CGI::Ex::Template.

BUGS/TODO

Memory leak

The use of FILTER aliases causes a memory leak in a cached environment. The following is an example of a construct that can cause the leak.

  [% n=1; n FILTER echo=repeat(2); n FILTER echo %]

Anybody with input or insight into fixing the code is welcome to submit a patch :).

undefined_any

The XS version doesn't call undefined_any when play_expr finds an undefined value. It needs to.

AUTHOR

Paul Seamons, <paul@seamons.com>

LICENSE

This module may be distributed under the same terms as Perl itself.