In the last chapter, we spiced up Whoosh’s routing, by reorganizing our first bit of routing code into a set of reusable classes and patterns. Now, it’s time to turn our attention toward presenting better interfaces.
There are many different approaches to templating. It’s a polarizing topic, where disagreements usually come down to where the line is drawn between code that renders HTML and the rest of the code.
I don’t want to get into which approach is best, because in the end “which is best?” can usually only be answered by “it depends.” Instead, ...