Skip to content

Commit

Permalink
don't leave the pre-processed template lying around
Browse files Browse the repository at this point in the history
It might be useful for debugging whilst writing templates though...
  • Loading branch information
AD7six committed Nov 14, 2014
1 parent 4548fc1 commit 3feeed3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/View/BakeView.php
Expand Up @@ -104,8 +104,9 @@ protected function _evaluate($viewFile, $dataForView) {
ob_start();

include $this->__viewFile;

unset($this->__viewFile);
if (file_exists($this->__viewFile)) {
unlink($this->__viewFile);
}

$content = ob_get_clean();

Expand Down

0 comments on commit 3feeed3

Please sign in to comment.