From f2b74aecc24b703ad0689e2859354fd3e5749345 Mon Sep 17 00:00:00 2001 From: nelsonlaquet Date: Sun, 1 Sep 2013 02:27:04 -0500 Subject: [PATCH] fixed coffee --- app/library/Assets.php | 2 +- public/asset.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/library/Assets.php b/app/library/Assets.php index 4607ef44..d356bfa2 100644 --- a/app/library/Assets.php +++ b/app/library/Assets.php @@ -41,7 +41,7 @@ } public static function scriptAssetCollection($area) { - $coffeeScript = new CoffeeScriptFilter(Config::get('app.coffee')); + $coffeeScript = new CoffeeScriptFilter(Config::get('app.coffee'), Config::get('app.node')); if ($area == 'app') { $collection = new AssetCollection([ diff --git a/public/asset.php b/public/asset.php index 0c4eea00..c012a8d4 100644 --- a/public/asset.php +++ b/public/asset.php @@ -29,7 +29,7 @@ $bundle->setTargetPath('scripts'); } else { $filePath = trim($_GET['file'], '/'); - $bundle = new AssetCollection([new FileAsset($filePath)], [new CoffeeScriptFilter(Config::get('app.coffee'))]); + $bundle = new AssetCollection([new FileAsset($filePath)], [new CoffeeScriptFilter(Config::get('app.coffee'), Config::get('app.node'))]); $bundle->setTargetPath($filePath); }