Table of contents
In eZ Commerce templates define the structure of page layout. Since eZ Commerce is based on eZ Platform which is built with Symfony framework we are using Twig as our templating language. We combine Twig logic with semantic HTML5, and as on output rendered in the browser we get HTML5 website.
In order to find out more about Twig please visit Twig's official documentation page.
We decided to use a special comment block at the top of every template. Inside that block should follow a short description as well as any dependencies and any other useful information. Using these little code block we can easily parse list of all templates with their description which makes the documentation a lot easier and faster.
Here's the example block.
Adding comment blocks in templates is work in progress. Currently most of the templates miss this feature.
Templates are stored in multiple bundles. Here is the list.