original_string: public function renderTemplate($key, $additionalData = array())
      {
          if (!isset($this->templates[$key])) {
              return '';
          }
          
          $output = '';
          
          // Render the template files
          foreach ($this->templates[$key] as $priority => $templateFile) {
              $output .= $this->searchRendererAndRenderTemplate($templateFile, $additionalData);
          }
          
          return $output;
      }
code: public function renderTemplate($key, $additionalData = array())
      {
          if (!isset($this->templates[$key])) {
              return '';
          }
          
          $output = '';
          
          // Render the template files
          foreach ($this->templates[$key] as $priority => $templateFile) {
              $output .= $this->searchRendererAndRenderTemplate($templateFile, $additionalData);
          }
          
          return $output;
      }
code_tokens: public function renderTemplate ( $ key , $ additionalData = array ( ) ) { if ( ! isset ( $ this -> templates [ $ key ] ) ) { return '' ; } $ output = '' ; // Render the template files foreach ( $ this -> templates [ $ key ] as $ priority => $ templateFile ) { $ output .= $ this -> searchRendererAndRenderTemplate ( $ templateFile , $ additionalData ) ; } return $ output ; }
docstring: Renders all template files for the given template key.
  
  @access public
  @param string $key
  @param array $additionalData
  @return string
docstring_tokens: Renders all template files for the given template key .