Kotwig is a very simple Kohana v3 module for the template system named Twig. It is built as an extension to the Kohana View, and thus share its’ API.
For twig documentation, language syntax and whatnot, please see the official twig documentation at its’ official website.
For my purposes, Kotwig is complete. I, however, do not use PHP frequently nowadays (university studies and ruby development) which means I am not likely to update this repository.
My suggestion to you if you wish to use Kotwig: fork it and maintain updates of the Twig submodule yourself by issuing the following command in a terminal:
git submodule foreach 'git remote update; git merge origin/master'
This is what using Kotwig looks like:
class Controller_Welcome extends Controller
{
public function action_index()
{
$this->request->response = Twig::factory('welcome');
}
}
Kotwig is aimed at developers, so make good use of the userguide module! ;)