cupcake-framework/cupcake2-cuprenderer-silex-provider

Template Engine used in PHP CupCake 2 Framework's provider for silex

dev-master 2014-08-31 16:47 UTC

This package is auto-updated.

Last update: 2024-12-06 09:24:15 UTC


README

This is the CupRenderer provider for use with Silex

Example Usage:

use Silex\Application;
use Silex\Provider\CupRendererProvider;

$app = new Application();
$app->register(new CupRendererProvider(), array(
    'cuprenderer.templatesFolder' => array(
        __DIR__ . '/src/templates/'
    ),
    'cuprenderer.viewsFolder' => array(
        __DIR__ . '/src/views/'
    ),
));
$app['cuprenderer']->render('myViewFile.php');