Twig

Twig helper class

 class Winter\Storm\Parse\Twig

Methods

public parse (string $contents, array $vars = []) : string

Parses supplied Twig contents, with supplied variables.

Parameters
Property Description
$contents
string

Twig contents to parse.

$vars
array

Context variables.

Returns
string
Copyright © 2024 Winter CMS