package Locale::Maketext::Extract::Plugin::TT2; use strict; use base qw(Locale::Maketext::Extract::Plugin::Base); use Template::Constants qw( :debug ); use Template::Parser; =head1 NAME Locale::Maketext::Extract::Plugin::TT2 - Template Toolkit format parser =head1 SYNOPSIS $plugin = Locale::Maketext::Extract::Plugin::TT2->new( $lexicon # A Locale::Maketext::Extract object @file_types # Optionally specify a list of recognised file types ) $plugin->extract($filename,$filecontents); =head1 DESCRIPTION Extracts strings to localise from Template Toolkit templates. =head1 SHORT PLUGIN NAME tt2 =head1 VALID FORMATS Valid formats are: =over 4 =item [% |l(args) %]string[% END %] =item [% 'string' | l(args) %] =item [% l('string',args) %] =back l and loc are interchangable. | and FILTER are interchangable. =head1 KNOWN FILE TYPES =over 4 =item .tt =item .tt2 =item .html =item .tt.* =item .tt2.* =back =head1 REQUIRES L