How Does SiteC Work?

How Does SiteC Work?

  1. Read initialization file ("~/.sitecrc"). This file defines the location of the source and destination directories and other configuration files.
  2. Copy all source files to the destination directory. This is necessary if references to non-HTML files (.ps, .tgz, ...) are made.
  3. Replace all expression in bracket format ([$xxx]) by expressions in tagged format (<pro action="xxx"></pro>).
  4. Read the initialization file for the deductive database.
  5. Parse the input directory:
    • Determine all HTML-files in the input directory and below. Store this hierarchy in the deductive database.
    • Parse the META-variables in the heads of all HTML-files and store the results in the deductive database.
  6. Generate destination files:
    • Determine and parse the design template file (template).
    • "Run" the _template_ for every HTML-source file: Normally, the template contains a "insert_body" statement where now the HTML-source is inserted.
    • Evaluate program commands in the HTML-source.
  7. Report all errors encountered during parsing or generation.
  8. Check that all HTML-references (<A HREF="...">) are saturated and report open links.
As an option, SiteC can automagically generate a template from the structure of the source directory. In this case, steps 1-4 are executed as described above and a template file is generated in the source directory.