(no title)
mamadrood | 9 years ago
I don't really mind them, but I find it extremely boring to have to register in the template engine every function that you will end up using somewhere else in your code and eventually have a language with less feature than plain old PHP and an other layer of cache.
So which use cases make you need Twig, for instance ?
CiPHPerCoder|9 years ago
It also makes it easier to separate your presentation logic from your business logic.
For example: https://github.com/paragonie/airship/blob/master/src/Cabin/B...
This uses macros and other fun things. Doing that in PHP would get messy.
https://github.com/paragonie/airship/blob/master/src/Cabin/B...
mamadrood|9 years ago
TheOneTrueKyle|9 years ago