-
Notifications
You must be signed in to change notification settings - Fork 1
RFC: ZfcTwig
RFC Author(s): Evan Coury - Though the module is written and maintained by Kyle Spraggs.
Zend Framework 2 Module that provides a Twig rendering strategy.
- MUST be easy to install and get Twig working.
- MUST work with ZF2 view helpers (shipped and user-defined) without additional steps required by users.
- MUST work seamlessly with the PHP and other renderers. (Using this module SHALL NOT make it impossible to use modules utilizing .phtml)
None.
A note from Evan: We should analyze the features and differences and see if we can work with the authors to collaborate on one pseudo-official Twig module. I think in the case of Twig support, having all of these duplicate module is a real detriment to the community. Aside from the obvious NIH issues, it simply creates confusion for new ZF2 developers looking to use Twig. Not to mention module compatibility. For example, let's say one of these Twig modules doesn't support user-defined view helpers yet, or does so via a different syntax than the other two. Any modules using Twig built against that Twig module will be incompatible with applications using the other one, with the obvious assumption that you couldn't have more than one Twig module reasonably installed at the same time. For this reason, I think we should certainly make an effort to work with the developers of the other Twig modules to consolidate development under ZfcTwig.
ZfcTwig has already been accepted into ZF-Commons.
Comments are closed for this RFC. If you have any issues, see the ZfcTwig issue tracker.