Phrocco\Phrocco::write PHP Method

write() public method

This method includes the template file and writes the final buffer to the output file.
public write ( $content ) : `void`
return `void`
    public function write($content)
    {
        $result = file_put_contents($this->output_file, $content);
        if (false === $result) {
            throw new \Exception("Unable to write final output to {$this->output_file}. Check permissions and try again", 1);
        }
        return true;
    }