Anton Gerasimov > Template-Plugin-Octets-0.17 > Template::Plugin::Octets

Download:
Template-Plugin-Octets-0.17.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.17   Source   Latest Release: Template-Plugin-Octets-0.18

NAME ^

Template::Plugin::Octets - TT2 plugin to format numeric values as binary octets

VERSION ^

version 0.17

SYNOPSIS ^

    [% USE Octets %]

    Xmit [% Octets.kio(100500) -%] Kio
    Recv [% Octets.mio(9000) -%] Mio

    # Output:
    # Xmit 98.1 Kio
    # Recv ~0 Mio

DESCRIPTION ^

Template::Plugin::Octets is a plugin for Template Toolkit v2, which allows you to format numbers in templates. Try to run

    tpage eg/traffic.tt

to see it in action.

METHODS ^

kio

Format value as kibioctets (2^10 octets).

mio

Format value as mebioctets (2^20 octets).

gio

Format value as gibioctets (2^30 octets).

SEE ALSO ^

Template

Template::Plugin::Procedural

AUTHOR ^

Anton Gerasimov, <chim@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2013 by Anton Gerasimov

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: