|
APG file
|
An APG script.
|
|
APG script
|
An APG script is a text file, consisting of content blocks and script blocks.
Active Page Generator executes APG scripts.
.APG File
Extension: APG scripts
usually end with the extension ".APG", but this is
not a requirement. Using the ".APG" extension for APG scripts
provides extra functionality within Windows Explorer.
|
|
APGScript object
|
An APGScript object is the COM object returned by APGen.OpenScript(). It is used to run and
control the running of APG scripts. For more information, see
APGScript Object.
|
|
Active Page
Generator
|
Active Page Generator is a developer tool used to
automate content generation.
|
|
APGen
|
An abbreviation for Active Page
Generator.
|
|
APGen object
|
An APGen object is a COM object that can be
created using ProgID "APGen". It is used to obtain APGScript objects and run APG scripts.
For more information, see APGen Object.
|
|
Content
|
Data that is written to an output file or stream. In this
documentation, content is highlighted with this color.
|
|
Content block
|
A stretch of text within an APG script. All APG script text not
surrounded by script
brackets resides in a content block. In this
documentation, content blocks are highlighted with this color. Content
blocks are written, as is, to the output
stream.
|
|
Custom error handler
|
A routine that is called when an APG script
error occurs. Custom error handlers can be attached using Script.OnError or by sinking script error events.
|
|
Default script language
|
The script language used in for all code in an APG script. The default script language can be
specified using the <%# @LANGUAGE=... #%> directive at
the beginning of an APG script, otherwise a registry value determines the default script language.
|
|
Intrinsic object
|
An object that is automatically available to APG script code.
In Active Server Pages, the intrinsic objects include
Request,
Response,
Session, and
Application.
In APG scripts, the intrinsic objects include
APGen,
Output,
Script, and
Log.
For more information, see APG Script Intrinsic Objects.
|
|
Log stream
|
The stream where
log data is sent. Errors, warnings, and other information
can be sent to the log stream. The log stream
destination file can be a .log file. This file can also be another
repository if the Pluggable Streams feature is
used.
|
|
Output file
|
A file that is generated by running an APG script. These are the
"pages" generated by Active Page Generator. The terms page (as
in web page), file, and document are all synonymous. APGen
writes content to this
file, via the output
stream.
|
|
Output stream
|
The stream that receives generated content. The output stream may point
to an output file. It can
also point to another repository if the Pluggable
Streams feature is used.
|
|
Pluggable streams
|
An APGen feature that allows developers to
send generated content and log data to their own data
repositories. For more information, see Pluggable Streams.
|
|
Root script
|
The root script is the bottom script in a source code
tree. The files in this tree have APG include files, which are their branches
. The root script is the script that is explicitly executed. Within
an APG script, the root script can be found by evaluating Script.Path.
|
|
Script block
|
A stretch of text within an APG script delimited with <%#... #%> brackets.
Within an APG script, all text is either part of a content block or a
script block.
|
|
Script brackets
|
<%# and #%>. These brackets are used to denote a
script block within an APG script.
|
|
Stream
|
A "stream" is a sequence of
data. APGen allows developers to use Output streams and Log streams. Both of these streams
implement the COM IStream interface.
|