kriswallsmith/assetic — Issue #157: RFC: CdnAsset
Author: glen-84
Created: 2011-11-17 19:49:20+00:00
State: open

Possible API:

$jQuery = new CdnAsset('https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js', new FileAsset('/path/to/jquery.js'), $enable);

If $enable is true, Assetic will not do any filtering, and just return the CDN URL for output, otherwise it will use and process the asset in the second argument.

$enable could be replaced with: (APPLICATION_ENV === 'production')

(as an example)