Latte\Loaders\StringLoader::getContent PHP Method

getContent() public method

Returns template source code.
public getContent ( $name ) : string
return 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}'.");
        }
    }