Exemple #1
0
 /**
  * Compile the view at the given path.
  *
  * @param  string  $path
  * @return void
  */
 public function compile($path)
 {
     if (is_null($this->cachePath)) {
         return;
     }
     $contents = $this->pug->compile($this->files->get($path));
     $this->files->put($this->getCompiledPath($path), $contents);
 }
 /**
  * Compile the view at the given path.
  *
  * @param  string  $path
  * @return void
  */
 public function compile($path)
 {
     $this->footer = array();
     if (is_null($this->cachePath)) {
         return;
     }
     // First compile the Haml
     $contents = $this->pug->compile($this->files->get($path));
     // Then the Blade syntax
     $contents = $this->compileString($contents);
     // Save
     $this->files->put($this->getCompiledPath($path), $contents);
 }