perl-Template-Plugin-Autoformat-2.77-alt2.noarch.rpm


Advertisement

Description

perl-Template-Plugin-Autoformat - TT plugin for Text::Autoformat

Property Value
Distribution ALT Linux Sisyphus
Repository Classic noarch
Package name perl-Template-Plugin-Autoformat
Package version 2.77
Package release alt2
Package architecture noarch
Package type rpm
Installed size 9.93 KB
Download size 9.93 KB
Official Mirror ftp.altlinux.org
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
constructor.
[% 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.

Alternatives

Package Version Architecture Repository
perl-Template-Plugin-Autoformat - - -

Requires

Name Value
/usr/share/perl5 -
perl(Template/Plugin.pm) -
perl(Text/Autoformat.pm) >= 1.130
perl(base.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Template/Plugin/Autoformat.pm) = 2.770
perl-Template-Plugin-Autoformat = 2.77-alt2

Download

Type URL
Binary Package perl-Template-Plugin-Autoformat-2.77-alt2.noarch.rpm
Source Package perl-Template-Plugin-Autoformat-2.77-alt2.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus noarch classic
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus noarch classic
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Template-Plugin-Autoformat rpm package:
    # sudo apt-get install perl-Template-Plugin-Autoformat

Files

Path
/usr/share/doc/perl-Template-Plugin-Autoformat-2.77/Changes
/usr/share/doc/perl-Template-Plugin-Autoformat-2.77/README.md
/usr/share/perl5/Template/
/usr/share/perl5/Template/Plugin/Autoformat.pm

Changelog

2017-09-28 - Igor Vlasenko <viy@altlinux.ru> 2.77-alt2
- to Sisyphus
2015-04-02 - Igor Vlasenko <viy@altlinux.ru> 2.77-alt1
- regenerated from template by package builder
2015-01-19 - Igor Vlasenko <viy@altlinux.ru> 2.76-alt1
- regenerated from template by package builder
2014-06-23 - Igor Vlasenko <viy@altlinux.ru> 2.75-alt1
- regenerated from template by package builder
2014-04-07 - Igor Vlasenko <viy@altlinux.ru> 2.71-alt1
- initial import by package builder

See Also

Package Description
perl-Template-Plugin-EnvHash-1.06-alt2.noarch.rpm Environment Variable Hash for TT2
perl-Template-Provider-DBIC-0.02-alt1.1.1.noarch.rpm Template::Provider::DBIC - Load templates using DBIx::Class
perl-Template-Provider-Encoding-0.10-alt1.1.1.noarch.rpm Explicitly declare encodings of your templates
perl-Template-Timer-1.00-alt1.1.noarch.rpm Template::Timer - Rudimentary profiling for Template Toolkit
perl-Template-Tiny-1.12-alt1.noarch.rpm Template::Tiny - Template Toolkit reimplemented in as little code as possible
perl-Template-Toolkit-Simple-0.31-alt1.noarch.rpm Parameterizable packages
perl-Term-ANSIColor-4.06-alt1.noarch.rpm Color output using ANSI escape sequences
perl-Term-Animation-2.6-alt1.noarch.rpm ASCII sprite animation framework
perl-Term-Cap-1.17-alt1.noarch.rpm Perl termcap interface
perl-Term-EditorEdit-0.0016-alt2.noarch.rpm Edit a document via $EDITOR
perl-Term-EditorEdit-scripts-0.0016-alt2.noarch.rpm Term-EditorEdit scripts
perl-Term-Encoding-0.02-alt3.noarch.rpm Perl module to detect encoding of the current terminal
perl-Term-ProgressBar-2.22-alt1.noarch.rpm Provides a progress meter on a standard terminal
perl-Term-ReadPassword-0.11-alt2.noarch.rpm Asking the user for a password
perl-Term-ShellUI-0.92-alt1.noarch.rpm Perl module to write a fully-featured shell-like CLI
Advertisement
Advertisement