Lasso Soft Inc. > Home

[lp_header_serveHTML]

Linklp_header_serveHTML
AuthorBil Corry
CategoryTechnical
Version8.x
LicensePublic Domain
Posted20 Jan 2006
Updated20 Jan 2006
More by this author...

Description

Via header, sets content type to serve HTML.  It will force Lasso to send the page in the character set specified in Lasso Admin (default) or use the -encoding param.

Sample Usage

lp_header_serveHTML;

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.

[

define_tag:'lp_header_serveHTML',
	-description='Via header, sets content type to serve HTML.',
	-priority='replace',
	-optional='encoding';

	// internal var that lets other ctags know it's HTML
	var:'_lp_xhtml' = false;
	
	// set encoding
	if: !(local_defined:'encoding');
		local:'encoding' = $__encoding__; // use Lasso default encoding
	/if;	

	// set content type
	content_type: 'text/html; charset=' #encoding;	
	
/define_tag;

]

Related Tags

Comments

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

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