3 ms·
I'm a massive Laravel fan, but Twig would likely be a better template engine. Blade IIRC just does simple regex replacements for certain PHP constructs, whereas
by ceejayoz 12y ago
I'm a massive Laravel fan, but Twig would likely be a better template engine. Blade IIRC just does simple regex replacements for certain PHP constructs, whereas Twig is an actual full parser.
- vec 12y agoFunny you should mention that. We've been using a plugin called Timber (http://upstatement.com/timber/ http://upstatement.com/timber/) that provides exactly this functionality. They have a starter theme, but since its a plugin it can safely coexist with traditional WP template files, which is nice for refactoring and maintenance. Regardless, kudos on the project. It looks like a marked improvement over the normal state of affairs. The built-in templating is far from the worst thing about WP, but it is easy low-hanging fruit to modernize, and I for one am glad to see that effort pay off.