bangpound / assetic-codekit
Assetic filters to support proprietary Codekit extensions
dev-master / 1.0.x-dev
2014-08-25 16:48 UTC
Requires
- kriswallsmith/assetic: ~1.1
This package is auto-updated.
Last update: 2024-10-12 04:18:30 UTC
README
This project is to support the proprietary and undocumented Codekit extensions so that you can build a Codekit project without that application.
Javascript and CoffeeScript
For these languages, Codekit supports prepending and appending other scripts within the output. When a file contains comments like these:
// @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.
For example:
<?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, ));