# GetCurrentTemplatePath

Returns the fully specified path of the template containing the call to this function.

See also GetBaseTemplatePath, FileExists and ExpandPath.

### Syntax

    GetCurrentTemplatePath()

### Usage

This function differs from GetBaseTemplatePath in that it will return the template path of an included template if the call is made from a template included with a CFINCLUDE tag; whereas GetBaseTemplatePath returns the template path of the top-level template even when the call to GetBaseTemplatePath is actually made from an included template.

### Example

    <!--- This example uses GetCurrentTemplatePath to show
    the template path of the current page --->
    <HTML>
    <HEAD>
    <TITLE>
    GetCurrentTemplatePath Example
    </TITLE>
    </HEAD>

    <BODY>
    <H3>GetCurrentTemplatePath Example</H3>

    <P>The template path of the current page is:
    <CFOUTPUT>#GetCurrentTemplatePath()#</CFOUTPUT>

    </BODY>
    </HTML>