OpenBuildings/asset-merger — pull request #12 by petesaia (2013-03-06 02:02:49+00:00)
Title: Kohana 3.3 Port + YUI and a few other things.

FIrst of all I want to say that this library has way more potential than the other options for Kohana, nice job. I really wanted to use it on a project so I've ported it over to Kohana 3.3 and added a few things. This has been working great for us but please let me know if I have missed anything.

* PSR-0 Naming convention
* A YUI processor for both JS and CSS (yuicss | yuijs)
* More unit tests & PSR-0ified
* A Kohana singleton style factory method

With a real singleton it makes it easier to specify styles in the controller. For example I have something like this going on:

My controller:

```php
// 'style' and 'scripts' could be specified in a parent class somewhere. 'dashboard'
// is page specific in this example.
$this->template->asset_groups = array('style', 'scripts', 'dashboard');

Assets::factory('dashboard')
->js('admin/js/plugins/underscore.js')
->js('admin/js/custom/dashboard.js');
```

My view template header:

```php

```

Cheers