2016-09-15, 04:01 PM
Sorry if this has previously been posted but I'm wondering what was behind the decision of using Twig as the templating engine as opposed to Blade which is already built into laravel?
(2016-09-15, 06:07 PM)Euan T Wrote: [ -> ]Exactly as Nathan said. Blade allows you to use any PHP function inside templates, which would make moderating themes submitted to the mods site even more difficult than it already is (e.g.: checking that templates don't have code to "rm -rf /" and delete the whole system). Twig allows us to limit the functions available, whilst still offering a lot more power than the current system.
Additionally, Twig is used by multiple other systems (include phpBB if I remember correctly), which should mean that it's easier for theme designers to get started creating themes for MyBB 2.0.