My immediate thoughts:<p>• PHP, the poster example for template-based languages, seems to have spent all its recent years in development trying to get <i>away</i> from its HTML templating roots. I basically never see a PHP file in the wild which is using the old style with mostly HTML with sprinkles of PHP; it’s almost <i>all</i> pure PHP.<p>• Python has a perfectly good templating system in Jinja2, used by Flask and many others. Last I looked, even <i>Django</i> seemed to imply that they’d themselves would rather be using Jinja2 than Django’s own templating language. IIRC, Django even natively supports replacing its templating engine with Jinja2.<p>• For small-ish templates embedded inline in code, Python now has f-strings.<p>Therefore, I wonder: In what situation, exactly, would Cog, a PHP-style inline code templating system, be better than Jinja2 and/or f-strings? And would this benefit be worth the added cost of having yet another model of abstractions which few people would be familiar with?