From c03fba33998b3816e329f5e6c3cb268c0329e451 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 30 May 2007 09:58:11 +0000 Subject: [PATCH] =?utf8?q?Minimale=20Erweiterung=20um=20PlainTextTemplate,?= =?utf8?q?=20um=20Variablen=20in=20Strings=20leicht=20ersetzen=20zu=20k?= =?utf8?q?=C3=B6nnen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Template.pm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/SL/Template.pm b/SL/Template.pm index e4e940ba2..8693580d6 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -616,6 +616,37 @@ sub convert_to_pdf { } +#### +#### PlainTextTemplate +#### + +package PlainTextTemplate; + +use vars qw(@ISA); + +@ISA = qw(LaTeXTemplate); + +sub new { + my $type = shift; + + return $type->SUPER::new(@_); +} + +sub format_string { + my ($self, $variable) = @_; + + return $variable; +} + +sub get_mime_type { + return "text/plain"; +} + +sub parse { +} + +1; + #### #### OpenDocumentTemplate #### -- 2.20.1