src/Template.php
public function load($filename)
    {
        if ($t = $this->tryLoad($filename)) {
            return $t;
        }

        throw new Exception([
            'Unable to read template from file',
            'cwd'  => getcwd(),
            'file' => $filename,
        ]);
    }
public function load($filename)
    {
        if ($t = $this->tryLoad($filename)) {
            return $t;
        }

        throw new Exception([
            'Unable to read template from file',
            'cwd'  => getcwd(),
            'file' => $filename,
        ]);
    }
public function load ( $ filename ) { if ( $ t = $ this -> tryLoad ( $ filename ) ) { return $ t ; } throw new Exception ( [ 'Unable to read template from file' , 'cwd' => getcwd ( ) , 'file' => $ filename , ] ) ; }
Loads template from a specified file.

@param string $filename Template file name

@throws Exception

@return $this
Loads template from a specified file .