original_string: public function display($sTemplate, $return = FALSE) {
          // Start benchmark
          $CI = get_instance();
          $CI->benchmark->mark('dwoo_parse_start');
  
          // Check if file exists
          if ( !file_exists($this->template_dir . $sTemplate ) ) {
              $message = sprintf('Template file \'%s\' not found.', $sTemplate);
              show_error($message);
              log_message('error', $message);
          }
  
          // Create new template
          $tpl = new Dwoo_Template_File($this->template_dir . $sTemplate);
  
          // render the template
          $template = $this->get($tpl, $this->dwoo_data);
  
          // Finish benchmark
          $CI->benchmark->mark('dwoo_parse_end');
  
          // Return results or not ?
          if ($return == FALSE) {
              $CI->output->final_output = $template;
          } else {
              return $template;
          }
      }
code: public function display($sTemplate, $return = FALSE) {
          // Start benchmark
          $CI = get_instance();
          $CI->benchmark->mark('dwoo_parse_start');
  
          // Check if file exists
          if ( !file_exists($this->template_dir . $sTemplate ) ) {
              $message = sprintf('Template file \'%s\' not found.', $sTemplate);
              show_error($message);
              log_message('error', $message);
          }
  
          // Create new template
          $tpl = new Dwoo_Template_File($this->template_dir . $sTemplate);
  
          // render the template
          $template = $this->get($tpl, $this->dwoo_data);
  
          // Finish benchmark
          $CI->benchmark->mark('dwoo_parse_end');
  
          // Return results or not ?
          if ($return == FALSE) {
              $CI->output->final_output = $template;
          } else {
              return $template;
          }
      }
code_tokens: public function display ( $ sTemplate , $ return = FALSE ) { // Start benchmark $ CI = get_instance ( ) ; $ CI -> benchmark -> mark ( 'dwoo_parse_start' ) ; // Check if file exists if ( ! file_exists ( $ this -> template_dir . $ sTemplate ) ) { $ message = sprintf ( 'Template file \'%s\' not found.' , $ sTemplate ) ; show_error ( $ message ) ; log_message ( 'error' , $ message ) ; } // Create new template $ tpl = new Dwoo_Template_File ( $ this -> template_dir . $ sTemplate ) ; // render the template $ template = $ this -> get ( $ tpl , $ this -> dwoo_data ) ; // Finish benchmark $ CI -> benchmark -> mark ( 'dwoo_parse_end' ) ; // Return results or not ? if ( $ return == FALSE ) { $ CI -> output -> final_output = $ template ; } else { return $ template ; } }
docstring: Display or return the compiled template
  Since we assign the results to the standard CI output module
  you can also use the helper from CI in your templates!!
  
  @param string $sTemplate
  @param boolean $return
  @return mixed
docstring_tokens: Display or return the compiled template Since we assign the results to the standard CI output module you can also use the helper from CI in your templates!!