You can use CFInclude to include any file with any or no file extension.
Remember that Cold Fusion will parse all files included in this manor. This
has some interesting implications. For example try running the following
code with enable cfoutput only turned on.
<cfoutput><style><cfinclude template="foobar.css"></style></cfoutput>

If we assume that a .css file doesn't have any CFOutput tags in it then the
user will get the following output.
<style></style>

This may seem strange at first, but remember Cold Fusion parses and
processes included files separately.

-Matt



> -----Original Message-----
> From: Jim Priest [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 18, 2001 4:47 PM
> To: CF-Linux
> Subject: cfinclude w/ext other than .cfm
> 
> 
> On my Windows 2000 server I can do something like:
> 
> <cfinclude template="dsp_searchsub.inc">
> 
> And it works fine... This doesn't seem to work on my Linux box (both
> are running CF4.5)  The cfinclude on Linux will only work if the file
> is named .cfm.
> 
> Any ideas???
> 
> Thanks
> Jim
> 
> 
> --------------------------------------------------------------
> ----------------
> Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
> To Unsubscribe visit 
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=list
s/cf_linux or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to