jimmyshoes
Programmer
I have a page with the followng structure
In a large page, I have a lot of cfoutput tags. I tried enclosing the entire page with 1 <cfoutput> set but I got an error saying my cfloop did not have a matching end tag.
What is the best way to structure this page. Is it best to continue using <cfoutput> tags around each #expression# ?
Code:
<div class="<cfoutput>#someFunc()#</cfoutput>"> Text </div>
<div class="<cfoutput>#someFunc()#</cfoutput>"> Text </div>
<div class="<cfoutput>#someFunc()#</cfoutput>"> Text </div>
<cfloop query="someQuery">
<cfoutput>#someQuery.someCol#</cfoutput>
<cfoutput>#someQuery.someCol1#</cfoutput>
<cfoutput>#someQuery.someCol2#</cfoutput>
<cfoutput>#someQuery.someCol3#</cfoutput>
</cfloop>
In a large page, I have a lot of cfoutput tags. I tried enclosing the entire page with 1 <cfoutput> set but I got an error saying my cfloop did not have a matching end tag.
What is the best way to structure this page. Is it best to continue using <cfoutput> tags around each #expression# ?