Kohana module for the Twig template engine
PHP
Switch branches/tags
Nothing to show
Pull request Compare This branch is 20 commits ahead of jheathco:3.1.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
classes
config
guide/twig
vendor @ 7c124c9
.gitmodules
README.md
init.php

README.md

Kohana Twig module

This is a Kohana module for Twig.

Twig is a PHP template engine, developed by Sensio Labs.

This module is essentially a wrapper around the original library.

Installation

Add this module to your project as a git submodule by entering following command in your command line:

git submodule add https://github.com/zextra/kohana-twig.git modules/twig

This will checkout latest stable version of module into modules/twig directory of your project.

Next, include this module in your bootstrap.php file:

Kohana::modules(array(
	// ...
	'twig'      => MODPATH.'twig',      // Twig templating library
));

See guide/twig/usage.md file for usage example.