Architecture - StoneyJackson/quilt GitHub Wiki

Architecture

Components

  • Quilt CGI
  • Quilt dispatcher
  • Quilt processor

Files

  • Quilt configuration
  • Quilt dispatch rules
  • Quilt documents

Process

Quilt is invoked by directing a request through the Quilt CGI. The Quilt CGI is responsible for loading its configuration, loading the dispatch rules, constructing a request object, invoking the quilt dispatcher, and invoking the Quilt processor. The Quilt dispatcher matches the request against the dispatch rules. These rules identify the Quilt document that will handle the request. The Quilt processor loads and evaluates the quilt document, and returns the results to the requesting client.

A request to

http://a.server.com/cgi-bin/quilt.cgi/path/to/document

Is a request to quilt.cgi for

http://a.server.com/path/to/document

The location and name of the Quilt CGI can be hidden from clients by using URL rewriting mechanism. See TODO for more information.