diff options
Diffstat (limited to 'perllib/FixMyStreet/App/View/Email.pm')
-rw-r--r-- | perllib/FixMyStreet/App/View/Email.pm | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/perllib/FixMyStreet/App/View/Email.pm b/perllib/FixMyStreet/App/View/Email.pm index 6073ee814..6d83d3ddf 100644 --- a/perllib/FixMyStreet/App/View/Email.pm +++ b/perllib/FixMyStreet/App/View/Email.pm @@ -4,17 +4,14 @@ use base 'Catalyst::View::TT'; use strict; use warnings; -use mySociety::Locale; use FixMyStreet; +use FixMyStreet::Template; __PACKAGE__->config( + CLASS => 'FixMyStreet::Template', TEMPLATE_EXTENSION => '.txt', - INCLUDE_PATH => [ # - FixMyStreet->path_to( 'templates', 'email', 'default' ), - ], - ENCODING => 'utf8', - render_die => 1, - expose_methods => ['loc', 'file_exists'], + INCLUDE_PATH => [ FixMyStreet->path_to( 'templates', 'email', 'default' ) ], + render_die => 1, ); =head1 NAME @@ -27,23 +24,5 @@ TT View for FixMyStreet::App. =cut -=head2 loc - - [% loc('Some text to localize') %] - -Passes the text to the localisation engine for translations. - -=cut - -sub loc { - my ( $self, $c, @args ) = @_; - return _(@args); -} - -sub file_exists { - my ( $self, $c, @args ) = @_; - -e FixMyStreet->path_to(@args); -} - 1; |