I don't know if I understand you fully, but are you saying that the
beggining <cfoutput> is in one template and the </cfoutput> in another?  As
far as I understand, you can't do this.  There has to be a matching
</cfoutput> for every <cfoutput> in the same template.

FWIW, I generaly only use cfoutput in dsp_ and act_ files.  I do however
wrap the whole file in <cfoutput> (when it's needed) and use <cfloop> for
all of my queries.  I don't know if it's really a performance hit.  Is there
some documentation on this?  Wouldn't it be just as much a performance hit
to open and close <cfoutput> 40 times rather than once?  It sure is easier
to code, read, and debug with only one instance of <cfoutput>

Brad

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 30, 2000 11:14 AM
To: Fusebox
Subject: RE: <cfoutput>#request.variable#<cfoutput>


I'm curious about this one... I mean, I'm thinking, this is an issue that I
do think could be considered as part of the Fusebox methodology.

I see four possibilities here:
1: Apply CFOUTPUTs tersly, only around specific portions of code that need
it
2: Apply CFOUTPUTs around large blocks of code, which may or may not need it
everywhere
3: Apply CFOUTPUTs around the entire template, with only CFMAILs and other
anti-CFOUTPUT functions being left out.
4: Apply CFOUTPUTs at the index.cfm level, and explicitly escape out
anti-CFOUTPUT tags by starting with </CFOUTPUT> and ending with <CFOUTPUT>
to restart the CFOUTPUT string

Now, lets think of it like this.... here is an idea, so I'm lookin' for
input, advice, what-have-you...

A Proposal For Structuring a Fusebox App So That Everything Is Implicitly
CFOUTPUTted

PART 1: The Index.cfm file
You take your index.cfm, and make it look like this...

<CFOUTPUT>
<CFSWITCH ....>
{all the CFCASE statements for fuseactions}
</CFSWITCH>
</CFOUTPUT>

PART 2: Working with Query Recordsets
Tell yourself and anybody concerned that they are to use <CFLOOP QUERY=..>
instead of <CFOUTPUT QUERY=..>

PART 3: Dealing with anti-CFOUTPUT code, such as CFMAIL
Encapsulate all code by STARTING with a </CFOUTPUT> and ENDING with a
<CFOUTPUT> to restore the CFOUTPUT nest.

The End...


Alan McCollough
Web Programmer
Allaire Certified ColdFusion Developer
Alaska Native Medical Center

> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, November 29, 2000 5:46 PM
> To:   Fusebox
> Subject:      RE: <cfoutput>#request.variable#<cfoutput>
>
> ... Also, just be aware that there is a performance
> penalty with wrapping the whole page in cfoutputs.
> {redacted} 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to