cfincludes and start tags and end tags
Posted on 2004-09-22
I have a page.
It has 2 cfincludes.
I want to include a start tag in 1 include and the end tag in the other include.
the first include might be
and the other include would be
I would expect this to work but it does not.
It errors saying it cannot find the end tag. If I used </cfoutput> in the main page instead of the include it says it cannot find the start tag.
It appears when it is checking to make sure you have start and end tags that it only is looking in each include statement for both the start and end tags. In addition, the main page also appears to be looking for both the start and end tag.
Is there anyway I can seperate the start and end tages in different includes and get the page not to error.
I tried putting the < in the main file and then the first include looked like this
and then I put another < in the main file and the 2nd include looked like this
This did not error however the page just displayed #Now()#. I was suprised by this. What happenned to the <cfoutput> and </cfoutput>?
I really want to do this.