APGen Documentation Previous Topic: Dynamic Pages Next Topic: System Architecture Parent Topic: Active Page Generator Documentation    Active Page Generator Documentation
Automating Web Page Authoring
See Also:

One of APGen's primary uses is automating the creation and maintainenance of web pages and web sites.  As we all know, creating and maintaining web sites requires a lot of manual, repetitive work.  In addition to automating authoring and maintenance tasks for online, dynamic web sites, APGen is also valuable for authoring static web sites, including offline sites, CDs, and HTML help.

Active Server Pages can be used to automate creation of some web site content, but ASP programming has limitations.  ASP imposes a load on the web server each time a page is viewed.  Loading the web server limits performance, and this problem gets much worse as the amount and complexity of code increases.  APGen allows developers to take advantage of reuse, encapsulation, and automation to simplify web site creation and maintenance, without any degradation in performance.  In addition, many tasks can be automated using APGen that realistically can not be accomplished using ASP.

Automating Web Page Authoring is related to but different from using APGen to optimize web sites.  The first step is to decide which processes to automate.  The next step is to consider implementation, and start with the tasks that offer the biggest productivity gains.  We will review some tasks that can be automated.  For working source code, see the Web Authoring Examples.  This will help you develop new ways to use APGen to reduce your workload as a web developer.

Deciding What Tasks to Automate

Here is a short checklist that will help you determine which tasks to automate:

  1. Make a list of the tasks that consume the most web developer time.
  2. Which tasks are repetitive?  Repetitive tasks should be automated.  Non-repetitive tasks usually don't consume enough time to justify the time required to automate the task.  Eliminate non-repetitive tasks from the list.
  3. Prioritize this list.  The first tasks to be automated should be the tasks where: (1) Automation is easiest to implement; and (2) where the most time can be saved by automation. 

Examples of tasks that can/should be automated:

If you develop a great way of automating work on one web site, you can often adapt the technique and scripts to other web sites.  The up-front time investment in automating your work will save you countless hours and days in the future.

Examples

Examples that show how to automate web authoring tasks are installed with APGen.  They can be found in the subdirectories of

Program Files\APGen\Examples\Aut_Auth\

These topics discuss how the examples are implemented: