Is there any effect on the use of one large <cfoutput> tag?
I'm being forced / paid to work on a Legacy ColdFusion project (I'm a regular C # programmer), and one feature of CF is that they have their own tags that need to be mixed with HTML (a bad bad decision, IMO, since it's just it drives me crazy even when "it starts with the cf rule").
In addition, they have a # symbol indicating the beginning of the CF “territory”, which is very similar to %% in ASP.Net or $ in Spark, or so many equivalents. But this is only parsed if inside the tag.
My question is: is there a problem with opening one tag at the beginning of the file and closing it, instead of using it only when I am going to use the # character?
To illustrate some code here:
<cfoutput>
Some text #SomeVar# Some text.<br />
Some Images some other things #AnotherVar#
</cfoutput>
Against:
Some text <cfoutput>#SomeVar#</cfoutput> Some text.<br/>
Some Images some other things <cfoutput>#AnotherVar#</cfoutput>
, , .
This should not be a big problem, but be careful with the use of six-digit colors, you will need to avoid those who have extra #. If it were me, I would try to break these huge chunks of content into smaller chunks. Let HTML, JS, Flash, and CSS do their jobs and use CF for the back end.