Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trycf/b21d4a5691cd9d47765dcbcb35abf839 to your computer and use it in GitHub Desktop.
Save trycf/b21d4a5691cd9d47765dcbcb35abf839 to your computer and use it in GitHub Desktop.
TryCF Gist
<!--- TAG BASED --->
<cfset person = { first_name: "Bart", last_name: "Gooch", birth_date: createDateTime(1980,3,1,10,30,0), gender: "Male", hair_color: "blonde", eye_color: "blue", height: 186, height_units: "cm", weight: 100, weight_units: "kg", nationality: "Canadian" }>
<cfdump var="#person#" label="person - tag based">
<cfscript>
// Script based
person = {
first_name: "Bart",
last_name: "Gooch",
birth_date: createDateTime(1980,3,1,10,30,0),
gender: "Male",
hair_color: "blonde",
eye_color: "blue",
height: 186,
height_units: "cm",
weight: 100,
weight_units: "kg",
nationality: "Canadian"
};
writeDump( var=person, label="person - script based" );
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment