Text Helpers
Humanize Example:
Code: humanize("THIS IS A TEST") Output: This Is A Test
Standard Greeting:
Code: show_greeting Output: Good Evening, 3/4/2009 8:03 PM
Humanize Url Example:
Code: humanize_url("this-is-a-url-name") Output: This Is A Url Name
Limit Text Example:
Code: limit_text("This is a ton of text that I am testing. ", 40) Output: This is a ton of text that I am...
Formater:
Code: formater( number, "type")
Output:
Short Time: 20:03
Long Time: 8:03:02 PM
Short Date: 3/4/2009
Long Date: Wednesday, March 04, 2009
General Date: 3/4/2009 8:03:02 PM
XML: Wed 04 Mar 2009 20:03:02 EST
General Number: 175
Currency: $174.54
Fixed: 174.54
Standard: 174.54
Percent: 17,454.21%
Yes/No: Yes
True/False: True
On/Off: On