LassoScript Utility
Basics Browse Detail


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


[Include_Raw] inserts the specified format file into the current format file. No processing is performed on the included text.

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

This tag can be used in concert with the [Content_Type] tag to serve files of different data types from within Lasso.

[Include_Raw] should be used with the -EncodeNone keyword in order to send the included data to the client's Web browser unencoded.


[Include_Raw: 'File Path']

[Include_Raw: 'File Path', -EncodeNone]


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


To serve an image file through Lasso:

Use the [Content_Type] and [Include_Raw] tags. The following example uses the [Content_Type] tag to set the MIME type of the returned file to image/gif, the standard for GIF image files. The [Include_Raw] tag is then used to return the raw source of a file Picture.gif contained in the Images directory.

Notice that no white space is included between the two tags. Any stray characters will appear to be part of the GIF file and could cause problems.

[Content_Type: 'image/gif'][Include_Raw: '/Images/Picture.gif']

Related Tags

Category Tags