public function compile($path = null)
{
$this->compiler->compile($path);
$path = $this->getCompiledPath($path);
if (!file_exists($path)) {
return;
}
$html = file_get_contents($path);
if (!$this->DeviseParser->hasDeviseTags($html)) {
return;
}
$html = $this->DeviseCompiler->compile($html);
file_put_contents($path, $html);
}