code/libraries/joomlatools/library/template/engine/markdown.php
public function loadString($source)
    {
        $name = crc32($source);

        if(!$file = $this->isCached($name))
        {
            //Compile the template
            if(!$this->_source = $this->_compile($source)) {
                throw new RuntimeException(sprintf('The template content cannot be compiled.'));
            }

            $this->cache($name, $this->_source);
        }
        else  $this->_source = file_get_contents($file);

        return $this;
    }
public function loadString($source)
    {
        $name = crc32($source);

        if(!$file = $this->isCached($name))
        {
            //Compile the template
            if(!$this->_source = $this->_compile($source)) {
                throw new RuntimeException(sprintf('The template content cannot be compiled.'));
            }

            $this->cache($name, $this->_source);
        }
        else  $this->_source = file_get_contents($file);

        return $this;
    }
public function loadString ( $ source ) { $ name = crc32 ( $ source ) ; if ( ! $ file = $ this -> isCached ( $ name ) ) { //Compile the template if ( ! $ this -> _source = $ this -> _compile ( $ source ) ) { throw new RuntimeException ( sprintf ( 'The template content cannot be compiled.' ) ) ; } $ this -> cache ( $ name , $ this -> _source ) ; } else $ this -> _source = file_get_contents ( $ file ) ; return $ this ; }
Load the template from a string

@param  string  $source  The template source
@throws RuntimeException If the template could not be compiled
@return KTemplateEngineMarkdown
Load the template from a string