code: private static function renderTemplate(string $__file__, array $data): string
      {
          ob_start();
          extract($data);
          include $__file__;
          return ob_get_clean();
      }
docs: Safe include. Used for scope isolation.
  
  @param string $__file__  File to include
  @param array  $data      Data passed to template
  @return string