PHP Class Phrozn\Site\View\Markdown

Author: Victor Farazdagi
Inheritance: extends Base, implements Phrozn\Site\View
Show file Open project: farazdagi/phrozn Class Usage Examples

Public Methods

Method Description
__construct ( string $inputFile = null, string $outputDir = null ) : Phrozn\Site\View Initialize view
getOutputFile ( ) : string Get output file path
render ( array $vars = [] ) : string Render view. Markdown views are rendered within layout.

Method Details

__construct() public method

Initialize view
public __construct ( string $inputFile = null, string $outputDir = null ) : Phrozn\Site\View
$inputFile string Path to view source file
$outputDir string File destination path
return Phrozn\Site\View

getOutputFile() public method

Get output file path
public getOutputFile ( ) : string
return string

render() public method

Render view. Markdown views are rendered within layout.
public render ( array $vars = [] ) : string
$vars array List of variables passed to text processors
return string