Re:How I Render My Web Applications
by mewpmewp2 on Sunday May 12, 2024 @05:28AM
(#40333202)
I didn't quite understand why Latte over Blade?
[ Parent
| on HN ]
Re:How I Render My Web Applications
by vojtech_richter on Monday May 13, 2024 @12:52AM
(#40339884)
Well, the main difference is in input sanitazation. Take a look at this example of latte docs: https://latte.nette.org/en/safety-first#toc-latte-vs-naive-s....
Since different parts of user input have to be handled differently, you need to escape based on the context of the input. And that's exactly what latte does, whereas Blade or Twig escape everything the same way, no matter the context.