LassoScript Utility
Basics Browse Detail


Tag Link [Include] Category Include
Type Substitution Source Available No
Support Preferred Version 2.0
Change Unchanged Data Source Any
Output Type String Security Tag
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x, Lasso 2.5, Lasso 2.0, Lasso 1.x


[Include] inserts the specified format file into the current format file. Any Lasso code in the included format file is executed as if were placed in the current format file at the location of the [Include] tag.

Accepts a single parameter, the name of the format file to be included.

Container tags cannot be started within one file and closed in the other, but the [Include] tag can be contained within container tags which are opened and closed within the same format file.

Note: [Loop_Count] cannot be used within an include file to get the current repetition of a container tag around the [Include] tag. Instead, store the loop count in a variable.


[Include: 'File Path']


Required Parameters
File Path The path to the file to be included.


To include a header file in a format file:

Use the [Include] tag. The following code includes a header named Header.lasso before the contents of the page. The results are shown for a file Header.lasso which contains only the level-2 heading File Header.

[Include: 'Header.lasso']
... Format File Body ...

<h2>File Header</h2>
... Format File Body ...

Related Tags

Category Tags