This page is an example of using the wrap tag. The wrap tag takes the current content and inserts it at a placeholder in an external file.

The insertion point may be a placeholder, or any view element (i.e. a tag with a wact id)

You can choose to insert the wrapped content after any content that is under the insertion point:
    <wact:wrap insertat="someId" file="wrapper.html">

or you can replace the content under the insertion point:
    <wact:wrap replaceat="someId" file="wrapper.html">

This page uses replaces the content of the wrapper file with this page.

The wrap component has a closing tag, so you can wrap parts of a page. The box around this small form was created by using the wrap tag outside the form tag. The form then becomes "wrapped" by the table inside the file loaded in the wrap command.

Note that wrap tags may be nested. You can even use the same wrapper more than once on a page

Also, notice how this page uses the SET tag to pass a variable to the wrapping file to use as the title and header of this page.