original_string: public function getTemplateClassName($source)
      {
          // For the most part, adding a new option here should do the trick.
          //
          // Pick a value here which is unique for each possible way the template
          // could be compiled... but not necessarily unique per option value. See
          // escape below, which only needs to differentiate between 'custom' and
          // 'default' escapes.
          //
          // Keep this list in alphabetical order :)
          $chunks = array(
              'charset'         => $this->charset,
              'delimiters'      => $this->delimiters ? $this->delimiters : '{{ }}',
              'entityFlags'     => $this->entityFlags,
              'escape'          => isset($this->escape) ? 'custom' : 'default',
              'key'             => ($source instanceof Mustache_Source) ? $source->getKey() : 'source',
              'pragmas'         => $this->getPragmas(),
              'strictCallables' => $this->strictCallables,
              'version'         => self::VERSION,
          );
  
          $key = json_encode($chunks);
  
          // Template Source instances have already provided their own source key. For strings, just include the whole
          // source string in the md5 hash.
          if (!$source instanceof Mustache_Source) {
              $key .= "\n" . $source;
          }
  
          return $this->templateClassPrefix . md5($key);
      }
code: public function getTemplateClassName($source)
      {
          // For the most part, adding a new option here should do the trick.
          //
          // Pick a value here which is unique for each possible way the template
          // could be compiled... but not necessarily unique per option value. See
          // escape below, which only needs to differentiate between 'custom' and
          // 'default' escapes.
          //
          // Keep this list in alphabetical order :)
          $chunks = array(
              'charset'         => $this->charset,
              'delimiters'      => $this->delimiters ? $this->delimiters : '{{ }}',
              'entityFlags'     => $this->entityFlags,
              'escape'          => isset($this->escape) ? 'custom' : 'default',
              'key'             => ($source instanceof Mustache_Source) ? $source->getKey() : 'source',
              'pragmas'         => $this->getPragmas(),
              'strictCallables' => $this->strictCallables,
              'version'         => self::VERSION,
          );
  
          $key = json_encode($chunks);
  
          // Template Source instances have already provided their own source key. For strings, just include the whole
          // source string in the md5 hash.
          if (!$source instanceof Mustache_Source) {
              $key .= "\n" . $source;
          }
  
          return $this->templateClassPrefix . md5($key);
      }
code_tokens: public function getTemplateClassName ( $ source ) { // For the most part, adding a new option here should do the trick. // // Pick a value here which is unique for each possible way the template // could be compiled... but not necessarily unique per option value. See // escape below, which only needs to differentiate between 'custom' and // 'default' escapes. // // Keep this list in alphabetical order :) $ chunks = array ( 'charset' => $ this -> charset , 'delimiters' => $ this -> delimiters ? $ this -> delimiters : '{{ }}' , 'entityFlags' => $ this -> entityFlags , 'escape' => isset ( $ this -> escape ) ? 'custom' : 'default' , 'key' => ( $ source instanceof Mustache_Source ) ? $ source -> getKey ( ) : 'source' , 'pragmas' => $ this -> getPragmas ( ) , 'strictCallables' => $ this -> strictCallables , 'version' => self :: VERSION , ) ; $ key = json_encode ( $ chunks ) ; // Template Source instances have already provided their own source key. For strings, just include the whole // source string in the md5 hash. if ( ! $ source instanceof Mustache_Source ) { $ key .= "\n" . $ source ; } return $ this -> templateClassPrefix . md5 ( $ key ) ; }
docstring: Helper method to generate a Mustache template class.
  
  This method must be updated any time options are added which make it so
  the same template could be parsed and compiled multiple different ways.
  
  @param string|Mustache_Source $source
  
  @return string Mustache Template class name
docstring_tokens: Helper method to generate a Mustache template class .