Skip to content

Instantly share code, notes, and snippets.

@adamcameron
Created December 8, 2014 12:09
Show Gist options
  • Save adamcameron/09da2b08325cd0bcecf7 to your computer and use it in GitHub Desktop.
Save adamcameron/09da2b08325cd0bcecf7 to your computer and use it in GitHub Desktop.
For Kev. I would use local scope explicitly if I could not VAR-and-use in the same statement, eg:
<cfscript>
var text = "";
savecontent variable="text" {
// stuff here
}
writeOutput(text);
</cfscript>
<cfscript>
savecontent variable="local.text" {
// stuff here
}
writeOutput(text);
</cfscript>
@maxstuhl
Copy link

maxstuhl commented Dec 8, 2014

Stop calling my wife

-Kev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment