<cf_Template title="Page Title">
(some content here)
</cf_Template >
<cf_layout title="Page Title">
<cf_layout>
(some content here)
<cf_layout>
You could specify an "action" attribute to indicate which method to call on the layout component, but if you omit that attribute then the tag calls the first of "head,body,end" that has yet to be called by the tag in the current request.
The following is example code of the most basic usage of a layout component on the page:
<cfset Title = "Page Title">
<cfoutput>#layout.head(Title)#</cfoutput>
<cfoutput>#layout.body()#</cfoutput>
(some content here)
<cfoutput>#layout.end()#</cfoutput>
Alternately, you could forego the "Title" variable:
<cfoutput>#layout.head("Page Title")#</cfoutput>
<cfoutput>#layout.body()#</cfoutput>
(some content here)
<cfoutput>#layout.end()#</cfoutput>