Registry / web-framework / slim-views

slim-views

JSON →
library0.1.3phppackagistunverified

Smarty and Twig View Parser package for the Slim Framework

composer require slim/views
INSTALL
IMPORT
SIG · SLIM-VIEWS
S
slim-views
web-frameworkphpv0.1.3
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.

Twig
use Slim\Views\Twig;

Renders a Twig template with a variable

use Slim\Views\Twig; $view = new Twig(); $app->get('/hello/{name}', function ($request, $response, $args) use ($view) { return $view->render($response, 'profile.html', ['name' => $args['name']]); });
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
Resources
slim-views — pip install slim-views · libregistry