I’m generating some code using Python and looking at templating engines like Genshi as a tool to use during that process. However, I’m having trouble finding the benefits to doing so. It seems like Genshi is as expressive as a language like Python, which means you have all of the complexity of such a language, but now you have two languages.
Maybe my particular problem is just too complicated, or I misunderstood the purpose of these engines, but they don’t seem to offer anything that f""
strings don’t offer already.
What is the purpose of using a templating language like Genshi rather than just using the built in capabilities of a language like Python to do it for you?