/**
* Filters an asset just before it's dumped.
*
* @param AssetInterface $asset
*/
public function filterDump(AssetInterface $asset)
{
$this->dispatch(new LoadThemeVariables($variables = new Collection()));
$compiler = new Compiler();
if ($dir = $asset->getSourceDirectory()) {
$compiler->addImportPath($dir);
}
$compiler->setVariables($variables->all());
$asset->setContent($this->parser->parse($compiler->compile($asset->getContent())));
}