Revision d0785135
Von Sven Schöling vor etwa 7 Jahren hinzugefügt
SL/Presenter/Text.pm | ||
---|---|---|
56 | 56 |
|
57 | 57 |
=head1 SYNOPSIS |
58 | 58 |
|
59 |
use SL::Presenter::Text qw(truncate); |
|
60 |
|
|
59 | 61 |
my $long_text = "This is very, very long. Need shorter, surely."; |
60 |
my $truncated = $::request->presenter->truncate($long_text, at => 10);
|
|
62 |
my $truncated = truncate($long_text, at => 10); |
|
61 | 63 |
# Result: "This is..." |
62 | 64 |
|
63 | 65 |
=head1 FUNCTIONS |
Auch abrufbar als: Unified diff
Presenter: Doku