"Never" is too strong a word.  If you have a CFOUTPUT at the top of the page and 
another CFOUTPUT at the bottom of the page, it's not better to enclose the entire page 
in one CFOUTPUT tag as you're suggesting.

Extraneous code, no.  Extra code, yes - if it improves performance, reliability, or 
readibility.

Chris Norloff

---------- Original Message ----------------------------------
From: "Mark Warrick" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Tue, 29 May 2001 09:14:33 -0700

>You should never add extraeneous code into your templates, therefore Listing
>1 would be the better candidate.
>
>---mark
>
>------------------------------------
>Mark Warrick - Fusioneers.com
>Email: [EMAIL PROTECTED]
>Phone: 714-547-5386
>http://www.fusioneers.com
>http://www.warrick.net
>====================================
>
>> -----Original Message-----
>> From: J Winter [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, May 29, 2001 6:48 AM
>> To: CF-Talk
>> Subject: Correctly using CFOUTPUT
>>
>>
>> Hi, I've always been curious about this. What is the correct way? Does it
>> matter?
>>
>> Listing 1:
>>
>> <CFOUTPUT>
>> <TABLE>
>>      <TR>
>>              <TD>#var1#</TD>
>>      </TR>
>>      <TR>
>>              <TD>#var2#</TD>
>>      </TR>
>> </TABLE>
>> </CFOUTPUT>
>>
>> Listing 2:
>>
>> <TABLE>
>>      <TR>
>>              <TD><CFOUTPUT>#var1#</CFOUTPUT></TD>
>>      </TR>
>>      <TR>
>>              <TD><CFOUTPUT>#var2#</CFOUTPUT></TD>
>>      </TR>
>> </TABLE>
>>
>> Is there an unwritten rule; if there are more than 4 (or ?) vars in a page
>> Listing 1 is a good way to do it else Listing 2 is recommended?
>> I'm assuming
>> when using <CFOUTPUT QUERY="q1"></CFOUTPUT> Listing 1 would always be
>> applicable.
>>
>> Thanks for any help!
>>
>> Josh
>>
>>
>>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to