Latte\Loaders\StringLoader::getContent PHP 메소드

getContent() 공개 메소드

Returns template source code.
public getContent ( $name ) : string
리턴 string
    public function getContent($name)
    {
        if ($this->templates === NULL) {
            return $name;
        } elseif (isset($this->templates[$name])) {
            return $this->templates[$name];
        } else {
            throw new \RuntimeException("Missing template '{$name}'.");
        }
    }