Twig templates for MicroMVC Library's Views
Open Issues: 0
This package is auto-updated.
Last update: 2023-05-10 04:09:39 UTC
MicroTwig is an extension for the Micro framework libraries. It connects Micro to the Twig templating library.
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');
MicroTwig is released under the MIT license.