There's no easy answer to this. My pages are somewhere in between those two cases.
There are many variables (50?) on a page so it would be a mess of
<CFOUTPUT>#var#</CFOUTPUT> text <CFOUTPUT>#var#</CFOUTPUT> etc...
I think that way CF would be burdened by processing many <CFOUTPUT> tags.
The other war CF would be burdened by scanning for #s.
6 of one, half-dozen of the other...
At 10:36 AM 8/6/00 -0400, Seth Petry-Johnson wrote:
>> Before I go ahead with <CFOUTPUT> at the top of the page and
>> </CFOUTPUT> at the bottom of the page and a whole 'lotta page
>> in between...
>>
>> I am afraid that running some other CF tags inside a CFOUTPUT
>> might cause trouble. Is there *anything* that might get hurt by being
>> inside a CFOUTPUT?
>
>All other CF tags will function regardless of it they are wrapped in a
>CFOUTPUT or not. However, there are three reasons why I would recommend you
>NOT do this:
>
>1) Wrapping the whole page in a CFOUTPUT puts a greater load on CF. From a
>performance standpoint you are better off using multiple CFOUTPUT blocks
>around small bits of code.
>
>2) If you have any explicit color definitions (like <TD BGCOLOR="#ddee55">),
>CF will error out because of the '#' character. To get around this you need
>to double up the hash mark (like <TD BGCOLOR="##ddee55">). However, if down
>the road you remove the CFOUTPUT then your color codes will be incorrect
>again.
>
>3) Finally, it just seems like better programming practice to only CFOUTPUT
>blocks of code with variables in them. If your whole page is data driven,
>then one big CFOUTPUT might make sense. However, if only one section of the
>page actually uses any variables, then only wrap that one section in the
>CFOUTPUT. It will make code maintenance much easier.
>
>Regards,
>Seth Petry-Johnson
>Argo Enterprise and Associates
>
>
>------------------------------------------------------------------------------
>Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
---------------------------------------------------------------------------
Peter Theobald, Chief Technology Officer
LiquidStreaming http://www.liquidstreaming.com
[EMAIL PROTECTED]
Phone 1.212.545.1232 Fax 1.212.679.8032
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.