projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mailmap update
[kivitendo-erp.git]
/
SL
/
Presenter
/
Text.pm
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
=head1 SYNOPSIS
+ use SL::Presenter::Text qw(truncate);
+
my $long_text = "This is very, very long. Need shorter, surely.";
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
# Result: "This is..."
=head1 FUNCTIONS