Assetic Codekit Filters
This project is to support the proprietary and [undocumented][1] Codekit extensions so
that you can build a Codekit project without that application., (*1)
Javascript and CoffeeScript
For these languages, Codekit supports prepending and appending other scripts within the
output. When a file contains comments like these:, (*2)
// @codekit-prepend "a.coffee"
// @codekit-append "b.js"
# @codekit-prepend "a.coffee"
# @codekit-append "b.js"
You can use this filter to support those directives., (*3)
For example:, (*4)
<?php
$coffee = new \Assetic\Filter\CoffeeScriptFilter('/usr/local/bin/coffee');
$coffee->setBare(true);
$asset = new FileAsset('script.coffee', array(
new \Bangpound\Assetic\Filter\CodekitCoffeeScriptFilter($coffee),
$coffee,
));