Recent changes RSS feed
 

Core Include Tag

Summary

Include the contents of a file into the current template

Syntax

<core:include file="_filename_" literal>

Description

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

Filename Resolution

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.

See Also

The Core Include Tag is implemented by the CoreIncludeTag class.

 
tag/core/include.txt · Last modified: 2006/12/09 17:16
 
Hosting for this site donated by Procata PHP Development