 <cffunction name="set" returntype="void" access="public" output="false" hint="Use to configure a global setting or set a default for a function."
 	examples=
 	'
+		<!--- Example 1: Set the `URLRewriting` setting to `Partial` --->
 		<cfset set(URLRewriting="Partial")>
+		
+		<!--- Example 2: Set default values for the arguments in the `buttonTo` view helper. This works for the majority of Wheels functions/arguments. --->
 		<cfset set(functionName="buttonTo", onlyPath=true, host="", protocol="", port=0, text="", confirm="", image="", disable="")>
+		
+		<!--- Example 3: Set the default values for a form helper to get the form marked up to your preferences --->
+		<cfset set(functionName="textField", labelPlacement="before", prependToLabel="<div>", append="</div>", appendToLabel="<br />")>
 	'
 	categories="configuration" chapters="configuration-and-defaults" functions="get">
 	<cfscript>

	<cfreturn loc.returnValue>
</cffunction>

<cffunction name="get" returntype="any" access="public" output="false" hint="Returns the current setting for the supplied variable name."
	examples=
	'
		<!--- Get the current setting for the `tableNamePrefix` variable --->
		<cfset setting = get("tableNamePrefix")>

		<!--- Get the default for the `message` argument on the `validatesConfirmationOf` method  --->
		<cfset setting = get(functionName="validatesConfirmationOf", name="message")>
	'
	categories="global,miscellaneous" chapters="configuration-and-defaults" functions="set">

	<cfreturn $singularizeOrPluralize(text=arguments.word, which="singularize")>
</cffunction>

<cffunction name="toXHTML" returntype="string" access="public" output="false" hint="Returns an XHTML-compliant string.">
	<cfargument name="text" type="string" required="true" hint="String to make XHTML-compliant.">
	<cfset arguments.text = Replace(arguments.text, "&", "&amp;", "all")>
	<cfreturn arguments.text>
</cffunction>

<cffunction name="mimeTypes" returntype="string" access="public" output="false" hint="Returns an associated MIME type based on a file extension.">
	<cfargument name="extension" required="true" type="string" hint="The extension to get the MIME type for.">
	<cfargument name="fallback" required="false" type="string" default="application/octet-stream" hint="the fallback MIME type to return.">
	<cfif StructKeyExists(application.wheels.mimetypes, arguments.extension)>
		<cfset arguments.fallback = application.wheels.mimetypes[arguments.extension]>
	</cfif>
