<cfscript>

	param name="request.attributes.gistID" type="string";

	// Historically, when ColdFusion makes an HTTP request using the CFHttp tag, the
	// content sometimes shows up as a String and sometimes as a Byte Array (binary). As
	// such, I usually set the "getAsBinary" attribute to True in order to create a
	// normalized response. In this case, since I'm just using the File IO abstraction,
	// I'm creating this normalization through the fileReadBINARY() function.
	request.template.content = deserializeJson(
		charsetEncode(
			fileReadBinary( "https://gist.github.com/#request.attributes.gistID#.json" ),
			"utf-8"
		)
	);

</cfscript>