projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8858a05
)
Presenter: Doku
author
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 20 Dec 2017 13:15:35 +0000
(14:15 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 20 Dec 2017 13:15:35 +0000
(14:15 +0100)
SL/Presenter/Text.pm
patch
|
blob
|
history
diff --git
a/SL/Presenter/Text.pm
b/SL/Presenter/Text.pm
index
539f380
..
dd855fc
100644
(file)
--- 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