From: Moritz Bunkus Date: Wed, 30 May 2007 09:58:11 +0000 (+0000) Subject: Minimale Erweiterung um PlainTextTemplate, um Variablen in Strings leicht ersetzen... X-Git-Tag: release-2.4.3^2~236 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c03fba33998b3816e329f5e6c3cb268c0329e451;p=kivitendo-erp.git Minimale Erweiterung um PlainTextTemplate, um Variablen in Strings leicht ersetzen zu können. --- 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 ####