code: protected function renderFile($template, $target, $parameters)
      {
          if (!\is_dir(\dirname($target))) {
              \mkdir(\dirname($target), 0777, true);
          }
  
          return \file_put_contents($target, $this->render($template, $parameters));
      }
docs: @param string $template
  @param string $target
  @param array  $parameters
  
  @throws \Twig_Error_Loader
  @throws \Twig_Error_Runtime
  @throws \Twig_Error_Syntax
  
  @return int