* @author Kris Wallsmith */ class LessphpFilter implements FilterInterface { private $presets = array(); public function setPresets(array $presets) { $this->presets = $presets; } public function filterLoad(AssetInterface $asset) { $root = $asset->getSourceRoot(); $path = $asset->getSourcePath(); $lc = new \lessc(); if ($root && $path) { $lc->importDir = dirname($root.'/'.$path); } $asset->setContent($lc->parse($asset->getContent(), $this->presets)); } public function filterDump(AssetInterface $asset) { } }