Why the switch was made
One of the pain points in the previous version of Dotkernel was the templating engine. Although it was solid and robust, it was also 10 years old and used techniques that had become slightly outdated.
What Twig brings to Dotkernel3
Templates can now be written as HTML code with extra Twig tags. Twig is powerful and includes features such as:
- Layouts
- Loops
- Variables
- Escaping
The templating engine in Dotkernel3 gives the familiarity of HTML with the overview and convenience of PHP.
Frequently Asked Questions
Which templating engine does Dotkernel3 use? +
Dotkernel3 moved to the popular Twig Templating Engine.
Why did Dotkernel move away from the previous templating engine? +
The previous templating engine, although solid and robust, was also 10 years old and used techniques that had become slightly outdated, and it was one of the pain points in the previous version of Dotkernel.
What features does Twig bring to Dotkernel3 templates? +
Templates can now be written as HTML code with extra Twig tags, and Twig includes features such as layouts, loops, variables, and escaping, giving the familiarity of HTML with the overview and convenience of PHP.
Where can I read the official Twig templating documentation for Dotkernel? +
The official documentation is available at [twig.symfony.com](https://twig.symfony.com/).