https://github.com/thecodingmachine/html.renderer.twig-extensions
This package contains a set of Twig extensions and utility class to ease the use of Twig templates in Mouf.
https://github.com/thecodingmachine/html.renderer.twig-extensions
Last synced: 12 months ago
JSON representation
This package contains a set of Twig extensions and utility class to ease the use of Twig templates in Mouf.
- Host: GitHub
- URL: https://github.com/thecodingmachine/html.renderer.twig-extensions
- Owner: thecodingmachine
- License: mit
- Created: 2013-09-17T21:30:10.000Z (almost 13 years ago)
- Default Branch: 3.0
- Last Pushed: 2022-12-01T16:43:10.000Z (over 3 years ago)
- Last Synced: 2025-06-13T15:03:43.435Z (about 1 year ago)
- Language: PHP
- Size: 50.8 KB
- Stars: 0
- Watchers: 13
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://packagist.org/packages/mouf/html.renderer.twig-extensions)
[](https://packagist.org/packages/mouf/html.renderer.twig-extensions)
[](https://packagist.org/packages/mouf/html.renderer.twig-extensions)
[](https://packagist.org/packages/mouf/html.renderer.twig-extensions)
[](https://scrutinizer-ci.com/g/thecodingmachine/html.renderer.twig-extensions/?branch=1.0)
What is this package?
=====================
This package contains a set of classes to make Twig easier to use inside Mouf.
Twig extensions
---------------
It contains [a set of Twig extensions](doc/twig_extensions.md) that can be used to add useful features in Mouf.
For instance: `ValueInterface` and `HtmlElementInterface` evaluation in the Twig template, or I18n using Fine, in the template.
Extended Twig_Environment
-------------------------
The `Twig_Environment` is overloaded in order to be easier to configure from Mouf (the constructor proposes a set of arguments rather
than a simple array).
Also, this package contains an installer that will create a `Twig_Environment` instance you can directly use.
Mouf package
------------
This package is part of Mouf (http://mouf-php.com), an effort to ensure good developing practices by providing a graphical dependency injection framework.