PHP Класс Phrozn\Processor\Less

Автор: Victor Farazdagi
Наследование: extends Base, implements Phrozn\Processor
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$lessc lessc Reference to LESS compiler

Открытые методы

Метод Описание
__construct ( array $options = [] ) : Less If configuration options are passes then twig environment is initialized right away
render ( string $tpl, array $vars = [] ) : string Parse the incoming template

Защищенные методы

Метод Описание
getEnvironment ( boolean $reset = false ) Get LESS compiler (if undefined, set it with path for @import directives)

Описание методов

__construct() публичный Метод

If configuration options are passes then twig environment is initialized right away
public __construct ( array $options = [] ) : Less
$options array Processor options
Результат Less

getEnvironment() защищенный Метод

Get LESS compiler (if undefined, set it with path for @import directives)
protected getEnvironment ( boolean $reset = false )
$reset boolean

render() публичный Метод

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
Результат string Processed template

Описание свойств

$lessc защищенное свойство

Reference to LESS compiler
protected lessc $lessc
Результат lessc