From: Sven Schöling Date: Wed, 20 Dec 2017 13:15:35 +0000 (+0100) Subject: Presenter: Doku X-Git-Tag: release-3.5.4~554 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d0785135adfd8252678e1c9ad125d56bbf5edd3d;p=kivitendo-erp.git Presenter: Doku --- diff --git a/SL/Presenter/Text.pm b/SL/Presenter/Text.pm index 539f3804a..dd855fc09 100644 --- a/SL/Presenter/Text.pm +++ b/SL/Presenter/Text.pm @@ -56,8 +56,10 @@ SL::Presenter::Text - Presenter module for assorted text helpers =head1 SYNOPSIS + use SL::Presenter::Text qw(truncate); + my $long_text = "This is very, very long. Need shorter, surely."; - my $truncated = $::request->presenter->truncate($long_text, at => 10); + my $truncated = truncate($long_text, at => 10); # Result: "This is..." =head1 FUNCTIONS