How Does SiteC Work?
- Read initialization file ("~/.sitecrc"). This file defines
the location of the source and destination directories and other
- Copy all source files to the destination directory. This is
necessary if references to non-HTML files (.ps, .tgz, ...) are
- Replace all expression in bracket format ([$xxx]) by expressions
in tagged format (<pro action="xxx"></pro>).
- Read the initialization file for the deductive database.
- 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.
- 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.
- Report all errors encountered during parsing or generation.
- 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