or you could write your own render() function, though you'd want a bit
of error trapping, and might want to use the temp directory rather
than the current one. And performance is going to be a bit not great.
Plus you'd want to be *very* careful about what gets passed to this
function...

<cffunction name="render" output="No" returntype="string">
        <cfargument name="str" required="Yes" type="string">
        <cfset var rStr = "">
        <cfset var tmpFile = CreateUUID()>
        <cffile action="WRITE"
        file="#GetDirectoryFromPath(GetCurrentTemplatePath())##tmpFile#"
        output="#arguments.str#">
        <cfsavecontent variable="rStr">
                <cfinclude template="#tmpFile#">
        </cfsavecontent>
        <cffile action="DELETE" 
                
file="#GetDirectoryFromPath(GetCurrentTemplatePath())##tmpFile#">
        <cfreturn rStr>
</cffunction>

Bert

On 4/27/05, Adam Haskell <[EMAIL PROTECTED]> wrote:
> Uwe if you want to do this you would have to use New Atlanta's Blue
> Dragon. They have a new function (version 6.2) called Render. It
> should perform exactly as you are expecting
> <cfoutput>#bob#</cfoutput>.
> 
> Adam H
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204973
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to