So I think you've already discovered that CFINCLUDE is not that "granular."
It seems as though you just want a way to encapsulate your CFIF expression. UDF (User Defined Functions -- introduced in CF5) may be the way to go here. -- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ > -----Original Message----- > From: Gilbert Midonnet [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 19, 2002 11:15 AM > To: CF-Talk > Subject: cfinclude, how granular can you make it? > > > How granular can you make your includes? I ask because I'm unable > to breakup > an if-else clause. If I pull out the <cfif ...> and put it into > an include I > get a "Just in time compilation error." If I put the entire > <cfif><cfelse></cfif> into the include everything works fine. > > I'm not finding information on "just in time complitation error" in either > google, or forta's book or the macromedia site. > > > WHAT EXISTS : // if today is a holiday do this else do that > > > <cfif > ... snip ... > #year# EQ "2002" AND #month# EQ "9" AND #ThisDay# EQ "2" OR > ... snip ... > > > > <td class="holiday">#ThisDay#</td> > > <cfelse> > > <td><a href="">#ThisDay#</td> > > <cfif> > > > > > WHAT I WOULD LIKE TO BE ABLE TO DO: > > > <cfinclude template="holiday.cfm"> > > <td class="holiday">#ThisDay#</td> > > <cfelse> > > <td><a href="">#ThisDay#</td> > > <cfif> > > > > thx > > // gilbert midonnet > > > > ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists