LassoScript Utility
Basics Browse Detail

[HTML_Comment] ... [/HTML_Comment]

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

Description

[HTML_Comment] ... [/HTML_Comment] surrounds a portion of a page with HTML comment markers, but processes the Lasso tags within.

This tag is necessary since Lasso will not process any tags that are contained within HTML comment tags. The [HTML_Comment] ... [/HTML_Comment] tags are processed into actual HTML comment tags by Lasso ensuring that the Web browser sees the same output, but Lasso is able to process all the contained tags.

These are usually used when creating JavaScript or Style Sheets that have enclosed Lasso tags, but also need to be wrapped in HTML comment tags.

Syntax

[HTML_Comment] ... [/HTML_Comment]

Parameters

No Parameters Required.

Examples

To hide a portion of a page from the site visitor:

Use [HTML_Comment] ... [/HTML_Comment] tags around the code which should be hidden. The text inside the tags will be visible in the source of the page, but not in the rendered version of the page shown to the site visitor. The following example, hides some status information within an HTML comment.

[HTML_Comment]
  Date Served: [Server_Date]
  Time Served: [Server_Time]
[/HTML_Comment]

<!--
  Date Served: 8/29/01
  Time Served: 9:58:43
-->