This package provides a Latte templates cache warmer for Morozko.
$ composer require oops/morozko-latte-bridge
Oops/MorozkoLatteBridge requires PHP >= 7.1.
This bridge requires that Morozko is set up correctly; please refer to its README for instructions.
Register the extension in your config file, along with Morozko and a Symfony/Console integration:
extensions:
morozko: Oops\Morozko\DI\MorozkoExtension
morozko.latte: Oops\MorozkoLatteBridge\DI\MorozkoLatteBridgeExtension
console: Kdyby\Console\DI\ConsoleExtension
morozko.latte:
directory: %appDir% # <- this is the default
When you run the oops:morozko:warmup
command, Latte cache warmer will search for any *.latte
files within the configured directory, and pre-compile them.