oops / morozko-latte-bridge
Latte bridge for cache warmup library for Nette Framework.
Installs: 4 993
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >= 7.1.0
- latte/latte: ^2.4
- nette/application: ^2.4
- nette/di: ^2.4.10
- nette/finder: ^2.4
- oops/morozko: ^1.0.0@alpha
Requires (Dev)
- kdyby/console: ^2.7.0
- mockery/mockery: ^1.0.0
- nette/bootstrap: ^2.4.0
- nette/forms: ^2.4.0
- nette/tester: ^2.0.0
This package is auto-updated.
Last update: 2022-02-01 13:11:38 UTC
README
⚠️ THIS PACKAGE IS NO LONGER MAINTAINED. You can use the AdvancedCache module from contributte/console-extra instead.
This package provides a Latte templates cache warmer for Morozko.
Installation and requirements
$ 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.
Usage
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.