protected function importFile($path, $out)
{
// see if tree is cached
$realPath = realpath($path);
if (isset($this->importCache[$realPath])) {
$tree = $this->importCache[$realPath];
} else {
$code = file_get_contents($path);
$parser = new titanscss_parser($path, false);
$tree = $parser->parse($code);
$this->parsedFiles[] = $path;
$this->importCache[$realPath] = $tree;
}
$pi = pathinfo($path);
array_unshift($this->importPaths, $pi['dirname']);
$this->compileChildren($tree->children, $out);
array_shift($this->importPaths);
}