public function loadPartial($name)
    {
        try {
            if (isset($this->partialsLoader)) {
                $loader = $this->partialsLoader;
            } elseif (isset($this->loader) && !$this->loader instanceof Mustache_Loader_StringLoader) {
                $loader = $this->loader;
            } else {
                throw new Mustache_Exception_UnknownTemplateException($name);
            }

            return $this->loadSource($loader->load($name));
        } catch (Mustache_Exception_UnknownTemplateException $e) {
            // If the named partial cannot be found, log then return null.
            $this->log(
                Mustache_Logger::WARNING,
                'Partial not found: "{name}"',
                array('name' => $e->getTemplateName())
            );
        }
    }
public function loadPartial($name)
    {
        try {
            if (isset($this->partialsLoader)) {
                $loader = $this->partialsLoader;
            } elseif (isset($this->loader) && !$this->loader instanceof Mustache_Loader_StringLoader) {
                $loader = $this->loader;
            } else {
                throw new Mustache_Exception_UnknownTemplateException($name);
            }

            return $this->loadSource($loader->load($name));
        } catch (Mustache_Exception_UnknownTemplateException $e) {
            // If the named partial cannot be found, log then return null.
            $this->log(
                Mustache_Logger::WARNING,
                'Partial not found: "{name}"',
                array('name' => $e->getTemplateName())
            );
        }
    }
public function loadPartial ( $ name ) { try { if ( isset ( $ this -> partialsLoader ) ) { $ loader = $ this -> partialsLoader ; } elseif ( isset ( $ this -> loader ) && ! $ this -> loader instanceof Mustache_Loader_StringLoader ) { $ loader = $ this -> loader ; } else { throw new Mustache_Exception_UnknownTemplateException ( $ name ) ; } return $ this -> loadSource ( $ loader -> load ( $ name ) ) ; } catch ( Mustache_Exception_UnknownTemplateException $ e ) { // If the named partial cannot be found, log then return null. $ this -> log ( Mustache_Logger :: WARNING , 'Partial not found: "{name}"' , array ( 'name' => $ e -> getTemplateName ( ) ) ) ; } }
Load a Mustache partial Template by name.

This is a helper method used internally by Template instances for loading partial templates. You can most likely
ignore it completely.

@param string $name

@return Mustache_Template
Load a Mustache partial Template by name .