Lasso Soft Inc. > Home

[ include_raw ]


[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 method can be used in concert with the [Content_Type] method to serve files of different data types from within Lasso.

  • Syntax
include_raw('File Path')
  • Beginner

To serve an image file through Lasso:

Use the [Content_Type] and [Include_Raw] methods. The following example uses the [Content_Type] method to set the MIME type of the returned file to image/gif, the standard for GIF image files. The [Include_Raw] method 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 methods. Any stray characters will appear to be part of the GIF file and could cause problems.



Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home



©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft