[Petal] Petal::Utils patch

Warren Smith wsmith at hbslabs.com
Fri Apr 1 20:24:34 BST 2005


This is against 0.06.

This adds several new modifiers:
count: counts items in array
dollar: formats string as us dollar amount
percent: formats string as percentage (%.2f%%)
telephone: formats strings as NANPA phone numbers 
include: include file with dynamic name

I added the tests, but it looks like the docmentation may be
auto-generated, so I didn't touch that.

Questions, comments, complaints welcome.

-Warren
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-patch
Size: 19529 bytes
Desc: not available
Url : http://lists.webarch.co.uk/pipermail/petal/attachments/20050401/02e1cd5a/patch.bin


More information about the Petal mailing list