[–] mewpmewp2 2y ago ↗ I didn't quite understand why Latte over Blade? [–] vojtech_richter 2y ago ↗ 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.
[–] vojtech_richter 2y ago ↗ 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.
4 comments
[ 3.8 ms ] story [ 13.5 ms ] threadSince 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.