I dug into asset handling recently and thought it might be a good idea to consolidate asset handling (resolve url/path according to theme/plugin) into a separate Asset class.
In CakePHP 2 assets are handled in Html::assetUrl which interacts with Html::webroot, Html::assetTimestamp and also AssetDispatcher::_getAssetFile which duplicates logic from Html::assetTimestamp.
An Asset class would accept a route or url for an asset and offers primarily Asset::url (with or without timestamp) and Asset::path.
Any opinions?