Home directory for Malawi's wwwroot
Duncan Ewan
2021-02-19 3e758c29e0fde36fc088efcfc88f9a3014432b64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<cfcomponent><cfsetting enablecfoutputonly="yes">
 
    <cffunction name="cfcToMCDL" access="public" returnType="string" output="no"
        hint="Returns MCDL document representing the specified component">
 
        <cfargument name="component" type="any" required="yes"
            hint="component object">
            
        <!--- workaround for bug 33171 --->
        <cfif not IsDefined( 'getancestors' )>
            <cfinclude template="_component_utils.cfm">
        </cfif>
        <cfset cd = GetMetadata(component)>
        <cfinclude template="_component_cfcToMCDL.cfm">
        <cfreturn out>
    </cffunction>
 
 
    <cffunction name="cfcToHTML" access="public" returnType="string" output="no"
        hint="Returns HTML document representing the specified component">
        
        <cfargument name="component" type="any" required="yes"
            hint="component object">
            
        <!--- workaround for bug 33171 --->
        <cfif not IsDefined( 'getancestors' )>
            <cfinclude template="_component_utils.cfm">
        </cfif>
        <cfset cd = GetMetadata(component)>
        <cfsavecontent variable="out">
            <cfinclude template="_component_cfcToHTML.cfm">
        </cfsavecontent>
        <cfreturn out>
    </cffunction>
    
<cfsetting enablecfoutputonly="no"></cfcomponent>