original_string: private function compile($source)
      {
          $name = $this->getTemplateClassName($source);
  
          $this->log(
              Mustache_Logger::INFO,
              'Compiling template to "{className}" class',
              array('className' => $name)
          );
  
          if ($source instanceof Mustache_Source) {
              $source = $source->getSource();
          }
          $tree = $this->parse($source);
  
          $compiler = $this->getCompiler();
          $compiler->setPragmas($this->getPragmas());
  
          return $compiler->compile($source, $tree, $name, isset($this->escape), $this->charset, $this->strictCallables, $this->entityFlags);
      }
code: private function compile($source)
      {
          $name = $this->getTemplateClassName($source);
  
          $this->log(
              Mustache_Logger::INFO,
              'Compiling template to "{className}" class',
              array('className' => $name)
          );
  
          if ($source instanceof Mustache_Source) {
              $source = $source->getSource();
          }
          $tree = $this->parse($source);
  
          $compiler = $this->getCompiler();
          $compiler->setPragmas($this->getPragmas());
  
          return $compiler->compile($source, $tree, $name, isset($this->escape), $this->charset, $this->strictCallables, $this->entityFlags);
      }
code_tokens: private function compile ( $ source ) { $ name = $ this -> getTemplateClassName ( $ source ) ; $ this -> log ( Mustache_Logger :: INFO , 'Compiling template to "{className}" class' , array ( 'className' => $ name ) ) ; if ( $ source instanceof Mustache_Source ) { $ source = $ source -> getSource ( ) ; } $ tree = $ this -> parse ( $ source ) ; $ compiler = $ this -> getCompiler ( ) ; $ compiler -> setPragmas ( $ this -> getPragmas ( ) ) ; return $ compiler -> compile ( $ source , $ tree , $ name , isset ( $ this -> escape ) , $ this -> charset , $ this -> strictCallables , $ this -> entityFlags ) ; }
docstring: Helper method to compile a Mustache template.
  
  @see Mustache_Compiler::compile
  
  @param string|Mustache_Source $source
  
  @return string generated Mustache template class code
docstring_tokens: Helper method to compile a Mustache template .