PHP Класс Phrozn\Processor\Plain

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

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

Метод Описание
__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

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

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

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

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