Multi template engine driver for PHP
PHP Other
Latest commit 419b46e Nov 11, 2016 @Leko committed on GitHub Merge pull request #3 from Leko/v0.9
V0.9
Permalink
Failed to load latest commit information.
src
test
.gitignore
.phpmd.xml
LICENSE
README.md
circle.yml
composer.json

README.md

php-view-strategies

CircleCI codecov Latest Stable Version License

Multi template engine driver for PHP

Installation

composer require rush/view-strategies

Getting started

<?php

use Rush\View;

View::configure([
    'base_path' => '/path/to/view',
    'default_extension' => 'php',
    'strategies' => [
        'php' => 'View\\Strategy\\Plate',
        'jade' => 'View\\Strategy\\Jade',
    ],
]);

echo new View('index.php')->render([ 'name' => 'John', 'age' => 30 ]);
echo new View('relative/path/to/view.jade')->render();

See more example

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.