Edit on GitHub
Jump to docs navigation

Bolt Internals / Templating

Note: You are currently reading the documentation for Bolt 2.2. Looking for the documentation for Bolt 5.2 instead?

All templating in Bolt is done through Twig.

Twig is a template library that's not only secure, fast and flexible, but it's also elegant and concise, so it's easy to use for both 'developer' and 'frontend' type persons.

Basically, everything that you can do 'vanilla' Twig, you can do in the Bolt templates. We've added a few tags of our own. Browse src/Twig/TwigExtension.php and src/Twig/SetcontentTokenParser.php for details.

More information on this subject can be found in Templates and Routes and Content in Templates.



Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.