2015-05-10, 07:42 PM
(2015-05-10, 08:27 AM)Euan T Wrote: Hi,
Yes Twig has been firmly settled on. Other options were evaluated (including the Blade engine provided with Laravel), but we chose Twig for the following reasons:
- Security - Twig will only allow pre-defined functions and helpers. Tools like Blade allow the execution of PHP functions, using a headache for themes on the mods site.
- Speed - Twig caches compiled templates, meaning there is very little performance hit.
- Readability - Twig is widely used in many other projects and is very easy to read and understand.
- Flexibility - Twig is very flexible, and additional helper functions and filters can easily be defined. For instance, we have a function called "render_profile_link", which will (as the name implies) render a fully formatted link to a user's profile.
I think a detailed explanation as to what software mybb 2.0 will run on and why might be in order. I don't really see much of an explanation about any of this in either of the 2 dev blog posts.
you should put the horse before before the cart, not the cart before the horse.
