Include the contents of a file into the current template
<core:include file="_filename_" literal>
Components can be embedded inside the included file. These components become part of the enclosing document.
If you use the optional literal attribute in your include tag, then the contents of the included file is NOT parsed. (See CORE:LITERAL Tag)
Ironically this is a J2EE design pattern - the Composite View
Currently, the <core:include> tag does not support filenames which cannot be determined at the time of compiling the template. That is, you cannot load variable content with this tag. Therefore, the following will not work:
<core:include file="{$contentpage}.tpl.htm">
The wrap tag will do exactly what you need though (just the other way round). Please see the the example provided there.
The Core Include Tag is implemented by the CoreIncludeTag class.