original_string: protected function renderFile($template, $target, $model)
      {
          if (!is_dir(dirname($target))) {
              mkdir(dirname($target), 0777, true);
          }
  
          $this->files[] = $target;
  
          return file_put_contents($target, $this->render($template, $model));
      }
code: protected function renderFile($template, $target, $model)
      {
          if (!is_dir(dirname($target))) {
              mkdir(dirname($target), 0777, true);
          }
  
          $this->files[] = $target;
  
          return file_put_contents($target, $this->render($template, $model));
      }
code_tokens: protected function renderFile ( $ template , $ target , $ model ) { if ( ! is_dir ( dirname ( $ target ) ) ) { mkdir ( dirname ( $ target ) , 0777 , true ) ; } $ this -> files [ ] = $ target ; return file_put_contents ( $ target , $ this -> render ( $ template , $ model ) ) ; }
docstring: Render a template and result is dumped to a file.
  
  @param string $template Path to the template file
  @param string $target   Filename result
  @param array  $model    key-value array that acts as model
  
  @return int|bool Numer of byte that were written or false if error
docstring_tokens: Render a template and result is dumped to a file .