oito/php-micro-plugin-twig

Twig plugin for Oito PHP microframework

v1.0.0 2014-03-03 02:40 UTC

README

Uses the libraries

About

This plugin enables you to use the Twig library to render views using the Twig template engine.

Usage

<?php

$app = new \Oito\Micro\Application();

// the plugin will be available as: "twig"
$app->addPlugin(new \Oito\Micro\Plugin\Twig());

$app->twig->render('...');