-
Notifications
You must be signed in to change notification settings - Fork 473
Component Classes
Jonas Thelemann edited this page Jun 25, 2016
·
1 revision
Class | Functionality |
---|---|
Minify | Combine, process, and serve pieces of content (usually CSS/JS files). Almost all behavior is configurable including request handling (via controllers), HTTP headers & encoding, caching (file/APC/memcached), and compression functions (by default, the classes below) |
JSMin | A port of jsmin.c, extended to preserve some multi-line comments and IE conditional comments (since these occasionally have their uses). |
Minify_CSS | Uses the two classes below to minify CSS and optionally rewrite URIs. |
Minify_CSS_Compressor | Agressively minifies CSS. Includes a thorough test suite to make sure most common hacks and unusual syntaxes are preserved. |
Minify_CSS_UriRewriter | In CSS files, rewrites file-relative URIs as root-relative. With test suite |
Minify_HTML | Agressively minifies (X)HTML markup. Preserves TEXTAREA/PRE contents, can invoke minifiers on STYLE and SCRIPT blocks, and wraps content in CDATA blocks in XHTML when necessary. Includes test suite. |
Minify_YUICompressor | (Experimental) PHP wrapper for invoking the Java-based YUI Compressor |
Minify_ImportProcessor | Linearize a CSS/JS file by including content specified by CSS import declarations. In CSS files, relative URIs are fixed. This has a test suite but should be considered "experimental". |
HTTP_Encoder | Applies HTTP encoding to content. Can serve content with conditional encoding based on Accept-Encoding headers (parsed according to HTTP spec) and known browser bugs. |
HTTP_ConditionalGet | Implements HTTP conditional GETs via a simple, flexible API. |