From d0785135adfd8252678e1c9ad125d56bbf5edd3d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 20 Dec 2017 14:15:35 +0100 Subject: [PATCH] Presenter: Doku --- SL/Presenter/Text.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.20.1