Static Content Formatting

The static content formatting commands can be used to create web pages with specific layouts, not dependent on any variables. This is achieved by using template files and include files. File inclusion can depend on criteria such as comparing the page file name, extension, or part of the path with string literals. Sections of HTML code processed with static formatting commands can include dynamic formating commands.

Include files and template files can be used to design special web page layouts. They can be nested as needed to realize the desired layout of the web page.

Included files content can be inserted in the HTTP response using a script-like syntax:

<%#include file="name"%>

This will replace the formatting command with the content of the named file. This file content will in turn be examined for possible static formating commands, to be executed. A when clause may follow the include command, to perform inclusion only if the condition is met. If the condition is not met and a file named name~ exists, it will be included instead of the original one.

Template files are a special form of file inclusion. They do not accept a when clause. In the simplest form, a template is used like this:

<%#template file="name"%>
    ...template argument
<%#template%>

The file named as template will contain HTML code, with a special include command:

<%#include file=*%>

This include * command will be replaced with the text of the template argument, then the resulting text will replace the template invocation command, up to the end of the template argument marker (<!--#template-->).

Both included files and templates can accept parameters, defined in the formatting command as trailing double-quoted comma separated strings, and referred inside the included files with <%#paramNNN%>

A separate set of commands deal with URLs and part of URL replacements

Terms of Use Privacy Policy Disclaimer Copyright © Fast Web Technologies LLC
  Information for:
Home Products Support Downloads About Us
 Web Developers
 Web Designers
 Web Administrators
 IT Integrators
 Managers
What's new
Performance
Availability
Site Index
Site Map
Contact Us