ALT repositories
Last updated at Sat, 06 Jun 2020 00:53:36 +0000 | SRPMs: 18550
en ru
SRPMs in branches
hide window
Other repositories
hide window
CPAN: 2.77

Group :: Development/Perl
Source RPM: perl-Template-Plugin-Autoformat
Current version: 2.77-alt2
Built: almost 3 years ago
Size: 12.1 KB
Repocop status: ok
Home page:

License: perl
Summary: TT plugin for Text::Autoformat

This Template Toolkit plugin module is an interface to Damian
Conway's `Text::Autoformat' Perl module which provides advanced text wrapping
and formatting.

Configuration options may be passed to the plugin constructor via the
`USE' directive.

[% USE autoformat(right => 30) %]

The autoformat subroutine can then be called, passing in text items which
will be wrapped and formatted according to the current configuration.

[% autoformat('The cat sat on the mat') %]

Additional configuration items can be passed to the autoformat subroutine
and will be merged with any existing configuration specified via the

[% autoformat(text, left => 20) %]

Configuration options are passed directly to the `Text::Autoformat' plugin.
At the time of writing, the basic configuration items are:

left left margin (default: 1)
right right margin (default 72)
justify justification as one of 'left', 'right', 'full'
or 'centre' (default: left)
case case conversion as one of 'lower', 'upper',
'sentence', 'title', or 'highlight' (default: none)
squeeze squeeze whitespace (default: enabled)

The plugin also accepts a `form' item which can be used to define a
format string. When a form is defined, the plugin will call the
underlying `form()' subroutine in preference to `autoformat()'.

[% USE autoformat(form => '>>>>.<<') %]
[% autoformat(123.45, 666, 3.14) %]

Additional configuration items relevant to forms can also be specified.

[% USE autoformat(form => '>>>>.<<', numeric => 'AllPlaces') %]
[% autoformat(123.45, 666, 3.14) %]

These can also be passed directly to the autoformat subroutine.

[% USE autoformat %]
[% autoformat( 123.45, 666, 3.14,
form => '>>>>.<<',
numeric => 'AllPlaces' )

See the Text::Autoformat manpage for further details.

List of contributors:

List of rpms provided by this srpm:
  • perl-Template-Plugin-Autoformat
Recent changes (last three changelog entries):

2017-09-28 Igor Vlasenko 2.77-alt2

    - to Sisyphus

2015-04-02 Igor Vlasenko 2.77-alt1

    - regenerated from template by package builder

2015-01-19 Igor Vlasenko 2.76-alt1

    - regenerated from template by package builder
The Geyser project is based on code from Prometheus2.0, which had been made available under the MIT License.