|
Active Page Generator Documentation |
|
See Also: |
APGen 2.x includes a number of refinements, new features, and new and improved examples compared to APGen 1.0.
Script.RootScriptFilename,
Script.RootScriptDir, and
Script.RootScriptPath were changed to
Script.Filename,
Script.Dir, and
Script.Path respectively.
APGScript.Interface property is deprecated - use the new
APGScript.Globals property instead. Util.ConcatPath() and to
Util.BuildRelativePath() to make it easier to handle directories.ObjectContext intrinsic object provides access to ASP objects when an APG script is run in an ASP page.
APGen intrinsic
object supports data sharing between APG scripts (similar to the ASP
Application object), and easy execution of other APG scripts. Shared values can be stored in the new
APGen.Values collection.
APGen.Logon,
Output.Logon, and
Log.Logon objects allow the programmer to set the user account used for creating or modifying files.
APGen.WriteIffChanged and
Output.WriteIffChanged properties set whether output files are overwritten only when their contents change. This provides more accurate "Last Modified" dates and more efficient use with caching, replication, and content distribution systems.
APGen.Version property returns the version of APGen that is running.
APGen.BufferOutput property allows the programmer to set whether child APG scripts buffer output.
Output.BufferContents property allows manipulation and transformation (including XSLT transformation) of generated content before it is written to the output file.
Output.LastModified,
Script.LastModified, and
APGScript.LastModified properties give easy access to the last time the output file or any of the script files were modified.
Util.XMLEncode() method supports XML encoding of a text string.
For more information on the examples included with APGen 2.x, see APGen Examples.
Improvements to existing examples:
New examples: