kohkimakimoto/assetic-extension

Assetic extention filters.

dev-master 2013-06-20 13:58 UTC

This package is auto-updated.

Last update: 2024-12-07 00:29:22 UTC


README

Build Status

My Assetic extension filters.

List of Filters

  • CoffeeScriptPhpFilter: compiles CoffeeScript into Javascript using coffeescript-php

Usage

<?php

use Assetic\Asset\AssetCollection;
use Assetic\Asset\FileAsset;
use Assetic\Filter\CoffeeScriptPhpFilter;

$assetCollection = new AssetCollection();
$assetCollection->add(new FileAsset("foo.coffee"));
$assetCollection->ensureFilter(new CoffeeScriptPhpFilter());

echo $assetCollection->dump();