Jitify Tools Documentation

Overview

The command-line program jitify reads a file, performs optional transformations on the content, and writes the result to the standard output.

It currently supports HTML, JavaScript, and CSS2 content.

  1. Download the jitify-core source distribution
  2. Unpack and compile it:
            
    bunzip2 < jitify-core-version.tar.bz2 | tar xf -
    cd jitify-core-version
    make tools
          
  3. When the compilation completes, the jitify executable will be in the build subdirectory. Copy it to your directory of choice and add that directory to your $PATH, if needed.

Usage

Run the jitify program from the command-line:

jitify [options] (--css | --js | --html)  # read from stdin, write to stdout
jitify [options] filename                 # read from file, write to stdout

Options:

--remove-space      # remove unnecessary whitespace
--remove-comments   # remove comments
--minify            # equivalent to "--remove-space --remove-comments"
--block-size=n      # process the input at most n bytes at a time

Notes:

  • When jitify is run without a filename argument, the --css, --js, or --html flag must be used to specify the content-type.
  • When jitify is run with a filename argument, it tries to deduce the content-type based on the filename. If it cannot determine the content-type, or if it gets the content-type wrong (e.g., because you have a file named example.html that's really JavaScript), you can use the --css, --js, or --html flag to specify the proper content-type.
  • The default value of the --block-size parameter is fine for most purposes.