Twig is the preferred view rendering system in Vanilla's PHP codebase since version 3.0. It offers a few notable improvements over Smarty or creating views directly in PHP.
- Automatic escaping/sanitization of content (more secure).
- More efficient rendering (faster).
- Better developer documentation (more community support).