Re:Using Python helped YouTube ship features faster than Goo...
by codedokode on Monday March 26, 2018 @05:52AM
(#16677759)
Smarty is something from 15 years ago. Nowadays people use Twig which is inspired by Python's Jinja template engine and has similar syntax.
Re:Using Python helped YouTube ship features faster than Goo...
by DonHopkins on Tuesday March 27, 2018 @04:20AM
(#16686399)
Yet Python has never claimed to be a templating language itself, let alone "the easiest, simplest, most direct way to generate html".
My point is that PHP pretends to be a templating language, then falls flat on its face, so people end up implementing much worse (Smarty, MediaWiki) or sometimes even better (Twig) templating languages on top of it.
In other words, it's simply not true that PHP's "declarative "templating" is the easiest, simplest, most direct way to generate html", or there wouldn't be a need for Smarty, the MediaWiki abomination (which is 17 years old but still widely used on 29 million pages), or Twig.
I'd say "to hack together something half-assed that barely works, but does provide the feature" perfectly describes the PHP development process itself.
https://www.smarty.net/
https://en.wikipedia.org/wiki/Wikipedia:Templates
https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule