1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-12 00:54:35 +02:00

+ HTTP_ConditionalGet_Build directory change monitor, + post-processing hook in Minify (for appending timestamps to URIs, etc.)

This commit is contained in:
Steve Clay
2008-03-02 04:59:13 +00:00
parent d86d79b7d2
commit 7a3d7129b4
5 changed files with 143 additions and 3 deletions

View File

@@ -44,6 +44,11 @@ abstract class Minify_Controller_Base {
// if you override this, the response code MUST be directly after
// the first space.
,'badRequestHeader' => 'HTTP/1.0 400 Bad Request'
// callback function to see/modify content of all sources
,'postprocessor' => null
// file to require to load preprocessor
,'postprocessorRequire' => null
);
}

View File

@@ -21,7 +21,7 @@ class Minify_HTML {
self::$_isXhtml = (false !== strpos($html, '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML'));
self::$_replacementHash = 'HTTPMINIFY' . md5(time());
self::$_replacementHash = 'MINIFYHTML' . md5(time());
// remove SCRIPTs (and minify)
$html = preg_replace_callback('/\\s*(<script\\b[^>]*?>)([\\s\\S]*?)<\\/script>\\s*/i',