Registry / other / schranz-templating-template-renderer

schranz-templating-template-renderer

JSON →
library0.1.0phppackagistunverified

Provide template renderer interface used by different template engine adapters.

composer require schranz-templating/template-renderer
INSTALL
IMPORT
SIG · SCHRANZ-TEMPLATING
S
schranz-templating-template-renderer
otherphpv0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TemplateRendererInterface
use Schranz\Templating\TemplateRenderer\TemplateRendererInterface;

Minimal implementation of the template renderer interface.

use Schranz\Templating\TemplateRenderer\TemplateRendererInterface; $renderer = new class implements TemplateRendererInterface { public function render(string $template, array $parameters = []): string { return 'Hello, ' . ($parameters['name'] ?? 'World'); } }; echo $renderer->render('hello', ['name' => 'PHP']);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
schranz-templating-template-renderer — pip install schranz-templating-template-renderer · libregistry