Magento 2 layout system
As seen in the previous chapter, the Magento 2 layout layer has a basic standard of positioning elements. If we think of a simple page that displays products in a given category, we have the following positioning vision:
You can see that each element's position has a specific role in rendering the layout. The controller specifies the rendering of each block according to their respective models and visualization layers:
The Magento 2 layout system, defined by XML files, is responsible for manipulating elements and the behavior of each block or page to be rendered by creating parameters to feed the system. It is correct that the layout files influence the behavior and performance of the View layer when the rendering happens.
The layout layer is divided into the following sections:
Page layout: This is responsible for declaring the general structure of the page, for example, a three-column layout. It operates mainly within the
<body>
element at the time of page...