PHP Class Phrozn\Processor\Plain

Author: Victor Farazdagi
Inheritance: extends Base, implements Phrozn\Processor
Show file Open project: farazdagi/phrozn

Public Methods

Method Description
__construct ( array $options = [] ) : void If configuration options are passes then twig environment is initialized right away
render ( string $tpl, array $vars = [] ) : string Parse the incoming template

Method Details

__construct() public method

If configuration options are passes then twig environment is initialized right away
public __construct ( array $options = [] ) : void
$options array Processor options
return void

render() public method

Parse the incoming template
public render ( string $tpl, array $vars = [] ) : string
$tpl string Source template content
$vars array List of variables passed to template engine
return string Processed template