##---------------------------------------------------------------------------
##
## MODULE NAME:     content.cfg
##
## COPYRIGHT:       Copyright (c) 2013, GladeSoft, Inc.
##                  All Rights Reserved.
##
##                  NOTICE: THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF
##                  GLADESOFT, INC., AND SHALL NOT BE REPRODUCED, COPIED
##                  IN WHOLE OR IN PART ADAPTED, MODIFIED, OR
##                  DISSEMINATED WITHOUT THE EXPRESS WRITTEN CONSENT
##                  OF GLADESOFT, INC. ANY REDISTRIBUTION OR
##                  PUBLICATION TO UNAUTHORIZED PERSONS IS STRICTLY
##                  PROHIBITED BY U.S. AND INTERNATIONAL COPYRIGHT LAW.
##
## DESCRIPTION:     Configuration file for example content package.
##
## AUTHOR:          M. Grosberg
##
## CREATION DATE:   Jun 24, 2002
##
##---------------------------------------------------------------------------
##
## HISTORY OF CHANGE
##
## -----+--------+------------------------------------------+------+---------
## VERS | DATE   | DESCRIPTION OF CHANGE                    | INIT | PR#
## =====+========+==========================================+======+=========
##  001 |06/24/02| File creation.                           | MYG  |
## -----+--------+------------------------------------------+------+---------
##  002 |07/07/02| Update for new SCPG features.            | MYG  | M1027
## -----+--------+------------------------------------------+------+---------
##  003 |10/13/02| Defaults for templates.                  | MYG  | M1045
## -----+--------+------------------------------------------+------+---------
##  004 |06/17/03| Optionally include manual.               | MYG  | M1091
## -----+--------+------------------------------------------+------+---------
##  005 |11/24/03| Refactor preprocessor for host tools.    | MYG  | M1096
## -----+--------+------------------------------------------+------+---------
##---------------------------------------------------------------------------

# Simple MIME map.
mime text/html                  html
mime image/jpeg                 jpg
mime image/gif                  gif
mime image/png                  png
mime x-server-internal/template thtm

# If we want the HTML manual included.
#!set INCLUDE_MANUAL = 1

# Uncomment this line to align HTML pages on 4 byte boundaries 
# within the library.
define alignment text/html  4

# By default keep everything aligned on 8 byte boundaries. 
define alignment *          8 

# Define external compression helpers and their codepoints.
# You can add new names with the same code point (and associated)
# compressor but with different chunk sizes if performance matters.
define encoding lzrw1kh(1) helper lzrw1kh_compress 16384  \
                                  __source_file__         \
                                  __output_file__

define encoding lzari(2)   helper lzari_compress   16384  \
                                  __source_file__         \
                                  __output_file__

# Load custom script code.
# !script html.ps

# HTML Preprocessing (optionally keep comments)
filter text/html - html-squish
#filter text/html - html-squish:keep-comments

filter x-preprocessed-text/html text/html       \
       perl:common_tokens                       \
       preproc html-squish

# Template processing
filter x-server-internal/template - preproc                    \
                                    html-squish:avoid-tokens   \
                                    template


# Encode HTML files with LZRW1/KH or LZARI.
encoding text/html lzrw1kh
#encoding text/html lzari

# Encode template files with LZRW1/KH.
encoding x-server-internal/template lzrw1kh

# Here is the content.
path html

# Include directory listings.
use subdirs 
