私は2つのコレクションを持っています:
Basset::collection('_b_pre', function($collection) {
$collection->add('../vendor/twitter/bootstrap/less/bootstrap.less')->apply('Less')->andApply('CssMin');
$collection->add('../app/stylesheets/less/ad404/manifest.less')->apply('Less')->andApply('CssMin');
$collection->add('../app/javascripts/coffee/ad404/main.coffee')->apply('CoffeeScript')->andApply('JsMin');
});
Basset::collection('_b_pre_product', function($collection) {
$collection->add('../vendor/twitter/bootstrap/less/bootstrap.less')->apply('Less')->andApply('CssMin');
$collection->add('../app/stylesheets/less/ad404/manifest.less')->apply('Less')->andApply('CssMin');
$collection->add('../app/javascripts/coffee/ad404/add_product.coffee')->apply('CoffeeScript')->andApply('JsMin');
});
これら 2 つのコレクションの唯一の違いは js ファイルです。結合または短くする方法はありますか?