Re:Cog resurgence
by nedbat on Friday January 14, 2022 @10:32PM
(#29943288)
Cog works line-by-line, which sidesteps thorny quoting concerns, and makes it applicable to more syntaxes. It lets you use regular Python code instead of "html-ified" code in Jinja (for example).
Certainly if you are happy with Jinja, you should use it.
Re:Cog resurgence
by teddyh on Friday January 14, 2022 @10:36PM
(#29943305)
Yes, I mean, I can understand how it works technically. But in what situations is something like Cog so beneficial that it offsets using something more well-known like Jinja? Are these situations common?
Certainly if you are happy with Jinja, you should use it.