zvax/js-wrapper

There is no license information available for the latest version (0.0.5) of this package.

0.0.5 2016-01-12 20:49 UTC

This package is auto-updated.

Last update: 2024-05-19 07:11:39 UTC


README

#Assets

simple assets wrapper

this exemple would serve the wrapped content of both base and base2 files located in the /testjs folder

function testCompositeAsset()
    {
        $engine = new Assets\Engine();
        $map = [
            'default' => [
                'base',
                'base2',
            ],
        ];
        $engine->addCompositeAsset('javascript',$map,new Storage\FileLoader(__DIR__.'/testjs', 'js'));

        $js = $engine->serve('javascript', 'default');
    }