Default to Double Syntax {{ }}
- binggumedia
- Member | 1
Hi All,
I would like the parser to default to double brackets. I've tried the following solutions, but they didn't work:
https://forum.nette.org/…th-latte-3-x
https://forum.nette.org/…ax-to-double
https://forum.nette.org/…in-version-3
Here is my code:
Flight::register('view', Latte\Engine::class, [], function (Latte\Engine $latte) {
$latte->addExtension(new Latte\Essential\RawPhpExtension);
foreach (get_class_methods(Utils::class) as $method) {
$latte->addFilter($method, fn(...$args) => Utils::$method(...$args));
}
$latte->setTempDirectory(__API__ . '/cache');
});
Any guidance would be greatly appreciated.