Template::Plugin::Octets - TT2 plugin to format numeric values as binary octets
version 0.18
[% USE Octets %] Xmit [% Octets.kio(100500) -%] Kio Recv [% Octets.mio(9000) -%] Mio # Output: # Xmit 98.1 Kio # Recv ~0 Mio
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.
Format value as kibioctets (2^10 octets).
Format value as mebioctets (2^20 octets).
Format value as gibioctets (2^30 octets).
Template
Template::Plugin::Procedural
Anton Gerasimov <chim@cpan.org>
This software is copyright (c) 2013 by Anton Gerasimov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Template::Plugin::Octets, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::Octets
CPAN shell
perl -MCPAN -e shell install Template::Plugin::Octets
For more information on module installation, please visit the detailed CPAN module installation guide.