template-interop / latte-adapter
Latte adapter for template-interop/engine
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/template-interop/latte-adapter
Requires
- php: >=7.1
- latte/latte: ^2.5
- template-interop/engine: ^0.0.2
Requires (Dev)
- phpunit/phpunit: ^8.3
This package is auto-updated.
Last update: 2025-09-21 02:54:03 UTC
README
latte/latte adapter for template-interop/engine.
Installation
This package is installable and autoloadable via Composer.
$ composer require template-interop/latte-adapter
Usage
<?php use Interop\Template\Latte\LatteEngine; $latte = new Latte\Engine; $latte->setLoader(new Latte\Loaders\FileLoader(__DIR__.'/templates')); $engine = new LatteEngine($latte); echo $engine->render('greeting', ['name' => 'John']);
You can also use it in conjunction with template-interop/middleware to use it in a HTTP middleware stack application.