abw/Template2 — Issue #4: autoformat plugin no longer found
Author: khera
Created: 2012-02-11 05:22:21+00:00
State: open

Upgraded from 2.23 to 2.24. I have Template::Plugin::Autoformat installed.

When processing a template which uses the autoformat filter, it fails with the complaint that it cannot find the filter.

Reverting to 2.23 (leaving all other modules as they are) solves the problem.

````perl
#!/usr/bin/perl
use strict;

use Template;

my $t = <<'EOM';
<% USE autoformat %>

<% FILTER autoformat %>
Foo.
<% END %>
EOM

my $tt = Template->new({ TAG_STYLE => 'asp' });

$tt->process(\$t,{}) or die $tt->error;
````

The output in 2.23 is as expected:

% perl afbug

Foo.

but in 2.24 I get this:

% perl afbug
plugin error - autoformat: plugin not found

The Template::Plugin::Autoformat is unchanged between the two runs.