Terence Monteiro wrote:
> Hi,
> 
> I needed a TT filter to convert bytes into units of kb, Mb, Gb, etc. I
> wrote a filter for this. Has anyone found such a module on CPAN or
> anywhere?
> 
> e.g
> 1024 -> 1k
> 2560 -> 2.5k
> 
> I was thinking of putting it up on CPAN if not already there?
> 

There is always Number::Bytes::Human on CPAN. It worked for me. Someone
else on the list can probably tell you how to turn that into a TT filter.

-- Robin


_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to