Hi All,

I'm trying to creat a file (index.cfm) with <cffile> which i want to populate with
Coldfusion tags. The creation of the file and populating it with the ouput
is fine except i'm having problems with the greater than & less than tags.

<cfsavecontent variable="indextext">
  &lt;cfset site = "1"&gt;
  &lt;cfinclude template="../index.cfm"&gt;
</cfsavecontent>
<!--- create a index.cfm and populate with the content above --->
<cftry>
  <cffile action="write" 
        file="#directory_path#index.cfm"
        output="#indextext#"
        addnewline="yes">
    <cfcatch type="any">
       <cfoutput>#catch.message#</cfoutput>
     <cfabort>     
    </cfcatch>
</cftry>

This is the code i'm trying to produce on the index.cfm page.

<cfset site = "1">
<cfinclude template="../microsites/index.cfm">

Instead i get:

&lt;cfset site = "1"&gt;
&lt;cfinclude template="../microsites/index.cfm"&gt;

Thanks, 
Jake 

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to