This week on the CraftQuest on Call livestream, Andrew and I went big picture on Twig. It was a broad discussion that ended with Andrew walking through how to do something cool (and complex) with Twig.
If you've ever wondered whether you might be pushing Twig too far, then this is a conversation you don't want to miss.
Here's what we covered:
What is Twig compared to just PHP?
How much complexity should be in a Twig template?
What about the "separation of concerns?"
When is the right time to generate a Craft module instead of using Twig?
I also published Andrew's segment on how to make Twig macros return values that you can manipulate. It's a great trick, especially if you don't want to or don't need to fire up a Craft module to handle more straightforward data manipulation.