Open any template. {$page->getName()}, {if} and {foreach} are Smarty; {{ page.getName() }}, {% if %} and {% for %} are Twig. The extension proves nothing, since Twig sites usually keep .html. The setting behind it is Globals.template.engine, Smarty by default; a Twig site sets it in the .settings.json file at the root of its site folder. There is no admin screen for it. More in two engines, one platform.
Answer
Templates and engines
Which engine is this site using
More in Templates and engines
- A snippet from the documentation does not work in my templates
- A variable assigned before the inheritance tag does not reach the parent
- A variable set inside an include does not survive outside it
- Translation works in one site and not another
- A partial shared between two page types sees different variables in each
Was this page helpful?
Your answer goes to the docs team.