PHP Класс Sonata\Component\Generator\Mustache

Автор: Fabien Potencier ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
renderDir ( string $dir, array $parameters ) Renders a directory recursively.
renderFile ( string $file, array $parameters ) Renders a file by replacing the contents of $file with rendered output.
renderString ( string $string, array $parameters ) : string Renders a single line. Looks for {{ var }}.

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

renderDir() публичный статический Метод

Renders a directory recursively.
public static renderDir ( string $dir, array $parameters )
$dir string Path to the directory that will be recursively rendered
$parameters array

renderFile() публичный статический Метод

Renders a file by replacing the contents of $file with rendered output.
public static renderFile ( string $file, array $parameters )
$file string filename for the file to be rendered
$parameters array

renderString() публичный статический Метод

Renders a single line. Looks for {{ var }}.
public static renderString ( string $string, array $parameters ) : string
$string string
$parameters array
Результат string