compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (15)

View Page History
{zone-data:requirements}
* This component *will* minify Javascript.
* This component *will* accept both filenames and strings as input to the filter() method.
* This component *will* support writing the minified Javascript to a file.
* This component *will* implement Zend_Filter_Interface
* This component *will* generate valid Javascript code
* This component *will* implement an adapter system allowing for different methods of minification
* This component *will* provide options for control of minification (such as opting not to remove comments, for example)
{zone-data}
{zone-data:dependencies}
* Zend_Filter
* Zend_Filter_Interface
* Zend_Filter_Exception
{zone-data}
This component can be integrated into other framework components, such as HeadScript view helper for automatic Javascript minification.

The component is used like any other Zend_Filter_* component, passing the string (or filename) to be minified to the filter() method.
{zone-data}

{zone-data:milestones}
* Milestone 1: [design notes will be published here|http://framework.zend.com/wiki/x/sg]
* Milestone 21: Working prototype checked into the incubator supporting minification of Javascript strings
* Milestone 32: Working prototype checked into the incubator supporting minification of Javascript files (and optionally writing output to a file)
* Milestone 43: Unit tests exist, work, and are checked into SVN.
* Milestone 54: Initial documentation exists.
{zone-data}

{zone-data:class-list}
* Zend_Filter_Minify_Exception
* Zend_Filter_Minify_Javascript
* Zend_Filter_Minify_Javascript_JsMin
* Zend_Filter_Minify_Interface
{zone-data}

$minified = $filter->filter('alert("hello world");');
{code}

||UC-02 Minifying a javascript file||
{code}
$filter = new Zend_Filter_Minify_Javascript();

$minified = $filter->filter('/path/to/my/javascript.js');
{code}
{zone-data}

{zone-data:skeletons}
{code}
class Zend_Filter_Minify_Exception extends Zend_Filter_Exception {}

<?php

/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Filter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Int.php 20096 2010-01-06 02:05:09Z nd987 $
*/


/**
* @see Zend_Filter_Interface
*/