PHP Interface Phrozn\Site\View

Site basically composed of number of views, which load configuration and tempaltes and get compiled into HTML.
Author: Victor Farazdagi
Inheritance: extends Phrozn\Has\SiteConfig, extends Phrozn\Has\InputRootDir, extends Phrozn\Has\InputFile, extends Phrozn\Has\OutputFile, extends Phrozn\Has\OutputDir, extends Phrozn\Has\Param, extends Phrozn\Has\Processors, extends Phrozn\Has\FrontMatter, extends Phrozn\Has\Template
Show file Open project: farazdagi/phrozn

Public Methods

Method Description
compile ( array $vars = [] ) : Phrozn\Site\View Render and save static version of a concrete view
render ( array $vars = [] ) : string Render input template

Method Details

compile() public method

Render and save static version of a concrete view
public compile ( array $vars = [] ) : Phrozn\Site\View
$vars array List of variables passed to text processors
return Phrozn\Site\View

render() public method

Render input template
public render ( array $vars = [] ) : string
$vars array List of variables passed to text processors
return string