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.
- Download the
jitify-coresource distribution - Unpack and compile it:
bunzip2 < jitify-core-version.tar.bz2 | tar xf - cd jitify-core-version make tools - When the compilation completes, the
jitifyexecutable will be in thebuildsubdirectory. Copy it to your directory of choice and add that directory to your$PATH, if needed.
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
jitifyis run without a filename argument, the--css,--js, or--htmlflag must be used to specify the content-type. - When
jitifyis 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--htmlflag to specify the proper content-type. - The default value of the
--block-sizeparameter is fine for most purposes.