template-interop/plates-adapter

League Plates adapter for template-interop/engine

Maintainers

Package info

github.com/template-interop/plates-adapter

pkg:composer/template-interop/plates-adapter

Statistics

Installs: 12

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.0.2 2019-09-17 16:03 UTC

This package is auto-updated.

Last update: 2026-03-01 00:29:13 UTC


README

league/plates adapter for template-interop/engine.

Installation

This package is installable and autoloadable via Composer.

$ composer require template-interop/plates-adapter

Usage

<?php

use Interop\Template\Plates\PlatesEngine;

$plates = new League\Plates\Engine(__DIR__.'/templates');
$engine = new PlatesEngine($plates);
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.