function smarty_prefilter_magixmin_callback($matches)
{
    $comp = new magixcjquery_compjs_minify();
    $comp->_optionsJShrink();
    return $comp->jscompressor('jshrink', $matches[1]);
    //return magixcjquery_compjs_minify::iniJShrink($matches[1],true);
}
Beispiel #2
0
 protected function _setPacker($source, $_encoding, $_fastDecode = true, $_specialChars = false)
 {
     require_once 'source/class.JavaScriptPacker.php';
     return self::$_packer = new JavaScriptPacker($source, $_encoding, $_fastDecode = true, $_specialChars = false);
 }