johnpbloch / micro-twig
Twig templates for MicroMVC Library's Views
1.0.2
2013-01-18 19:36 UTC
Requires
- php: >=5.3.0
- micro/micro: dev-master
- twig/twig: 1.12.*
This package is auto-updated.
Last update: 2024-12-10 07:35:52 UTC
README
MicroTwig is an extension for the Micro framework libraries. It connects Micro to the Twig templating library.
Use
To use, first make sure your templates will work in Twig. Then, when you need to use a view, instantiate the MicroTwig view:
// You only need to set $directory once \MicroTwig\View::$directory = '/path/to/your/views'; $view = new \MicroTwig\View('Layout');
License
MicroTwig is released under the MIT license.