Twig Overview - HL Vanilla Community
<main> <article class="userContent"> <p>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.</p><ul><li>Automatic escaping/sanitization of content (more secure).</li><li>More efficient rendering (faster).</li><li>Better developer documentation (more community support).</li></ul><div class="js-embed embedResponsive" data-embedjson="{"body":"\n When it comes to template engines in PHP, many people will tell you that\n PHP itself is a template engine. But even if PHP started its life as a\n template language, it did not evolve like one in the recent years. As a\n matter of fact, it doesn't support many features modern template\n engines should have nowadays:\n ","url":"https:\/\/twig.symfony.com\/","embedType":"link","name":"Home - Twig - The flexible, fast, and secure PHP template engine"}"> <a href="https://twig.symfony.com/" rel="nofollow noreferrer ugc"> https://twig.symfony.com/ </a> </div><p><br></p> </article> </main>