
Enterprise Server 6.1 APIs
Chapter 1 Overview 11
Server-Parsed HTML Tags
Enterprise Server 6.1 provides a C API for defining your own server-side tags.
These tags can beused in additionto thestandardserver-side tags, such as
config,
include and so on, in HTML files.
Enabling Server-Parsed Tags
To activate and deactivate the parsing of server-side tags, use the Parse HTML
page in the Content Management tab of the Class Manager. This page enables you
to switch off parsing of server-side HTML tags,or enable it with or without also
enabling the
exec tag.The page also allows you to specify whether to parse all files
or just those with a
.shtml extension.
The directive in
magnus.conf that enables the parsing of server-side tags is as
follows for Windows NT/Windows 2000:
For UNIX, the directive is the same except that the file is Shtml.so.
The directive in
obj.conf that enables the parsing of server-side tags is:
To enable parsing of server-side tags for files with extensions other than
.shtml,
add the extension to the appropriate line in the
mime.types file. For example, the
following line in
mime.types indicates that files with either a .shtml or .jbhtml
extension are parsed for server-side tags.
type=magnus-internal/parsed-html exts=shtml,jbhtml
For More Information
See Chapter 3, “Server-Parsed HTML Tags” for more information about defining
and using server-parsed tags.
Init funcs="shtml_init,shtml_send"
shlib="install_dir/bin/https/bin/Shtml.dll" NativeThread="no"
fn="load-modules"
Service fn="shtml_send" type="magnus-internal/parsed-html"
method="(GET|HEAD)"
Commenti su questo manuale