public static function prepare($tpl) { //set the compress tool self::$exclude = $tpl->getParam('minify_exclude', ''); self::$jstool = $tpl->getParam('minify_js_tool', 'jsmin'); if (self::$exclude) { self::$exclude = '@' . preg_replace('@[,]+@', '|', preg_quote(self::$exclude)) . '@'; } }