From 82cede1cc202e8e8e6b8d49357400da3343318ca Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 19 Jul 2018 17:56:34 -0300 Subject: [PATCH] Bug 13618: Add the raw TT filter Signed-off-by: Owen Leonard Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens --- Koha/Template/Plugin/raw.pm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Koha/Template/Plugin/raw.pm diff --git a/Koha/Template/Plugin/raw.pm b/Koha/Template/Plugin/raw.pm new file mode 100644 index 0000000000..113ca41794 --- /dev/null +++ b/Koha/Template/Plugin/raw.pm @@ -0,0 +1,30 @@ +package Koha::Template::Plugin::raw; + +# This file is part of Koha. +# +# Koha is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# Koha is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Koha; if not, see . + +use Modern::Perl; + +use Template::Plugin::Filter; +use base qw( Template::Plugin::Filter ); + +our $DYNAMIC = 1; + +sub filter { + my ( $self, $text ) = @_; + return $text; +} + +1; -- 2.39.5