Skip to content

Kohana v3 module for the Twig project

Notifications You must be signed in to change notification settings

Burgestrand/kotwig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kotwig

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.

Notes to developers

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'

Code example

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! ;)

About

Kohana v3 module for the Twig project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages