[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.
include_raw('File Path')
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.
Code
content_type('image/gif')
include_raw('/Images/Picture.gif')
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments