https://github.com/o2ps/morozkolattebridge
Latte bridge for Morozko
https://github.com/o2ps/morozkolattebridge
cache latte-template-engine nette-framework warmup
Last synced: 4 months ago
JSON representation
Latte bridge for Morozko
- Host: GitHub
- URL: https://github.com/o2ps/morozkolattebridge
- Owner: o2ps
- License: bsd-3-clause
- Created: 2018-01-01T19:55:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-26T09:18:36.000Z (almost 8 years ago)
- Last Synced: 2025-02-15T03:14:13.269Z (over 1 year ago)
- Topics: cache, latte-template-engine, nette-framework, warmup
- Language: PHP
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Oops/MorozkoLatteBridge
:warning: **THIS PACKAGE IS NO LONGER MAINTAINED.** You can use the AdvancedCache module from [contributte/console-extra](https://github.com/contributte/console-extra) instead.
[](https://travis-ci.org/o2ps/MorozkoLatteBridge)
[](https://packagist.org/packages/oops/morozko-latte-bridge)
[](https://packagist.org/packages/oops/morozko-latte-bridge)
This package provides a [Latte](https://latte.nette.org) templates cache warmer for [Morozko](https://github.com/o2ps/Morozko).
## Installation and requirements
```bash
$ 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:
```yaml
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.