PHP Class Phrozn\Processor\Scss

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

Protected Properties

Property Type Description
$scssc Reference to SCSS compiler

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

Protected Methods

Method Description
getEnvironment ( $reset = false )

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

getEnvironment() protected method

protected getEnvironment ( $reset = false )

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

Property Details

$scssc protected property

Reference to SCSS compiler
protected $scssc