download   home   source


jc@fusedevelopments.com's Gravatar   Giancarlo Gomez Jan 26, 2011 at 12:46 PM May 24, 2012 at 4:46 AM 1.1 ALL Plugins 927 209

FormatUtils

A Plugin with various string formatting functions

Description

This is a simple plugin generated from some UDF's that I have used. Some were created by me and some by others. It also includes 2 RoR insipired functions. Check it out!

You can read more at http://blog.fusedevelopments.com/2011/01/coldbox-plugin-formatutils-useful-udfs.html

Installation Instructions

Install into your Plugins folder an use as below:

#getMyPlugin("FormatUtils").pluralize(word:'house',count:20,returnCount:true)#

In the init() function you need to change the values of the following variables.

variables.encryptCloser
variables.encryptAlgorithm
variables.encryptKey

If you decide to use any algorithm other than CFMX_COMPAT, then you must use GenerateSecretKey() to generate a key and save it to variables.encryptKey