ColdFusion Application.cfc OnRequest() Creates A Component Mixin

<cffunction
	name="OnRequest"
	access="public"
	returntype="boolean"
	output="true"
	hint="Executes the requested ColdFusion template.">
 
	<!--- Define arguments. --->
	<cfargument
		name="TargetPage"
		type="string"
		required="true"
		hint="The requested ColdFusion template."
		/>
 
	<!--- Include the requested ColdFusion template. --->
	<!---
		<cfinclude template="#ARGUMENTS.TargetPage#" />
	--->
 
	<!---
		Instead of CFIncluding the target template,
		let's just rewrite the event method to actually
		contain the target template code. This
		accomplishes the exact same thing. We are just
		skipping the middle man.
	--->
	<html>
	<head>
		<title>OnRequest() Mixin</title>
	</head>
	<body>
 
		<p>
			This is the target page. Sweet!
		</p>
 
	</body>
	</html>
 
	<!--- Return out. --->
	<cfreturn true />
</cffunction>

For Cut-and-Paste