Sub Templates
Overview
Sub templates are templates that can be embedded within other templates. You can use them to define elements of your designs that you re-use frequently, or to provide multiple options within a template. They give you the following benefits:
-
They make creating and editing templates more efficient, as you do not have to recreate the design for each template.
-
They ensure consistency across your designs because you are re-using the same elements.
-
They allow you to include multiple options within a template.
For example, if you have multiple header versions, you can set each of them as a sub template. You can add these header sub templates to your designs, which is much faster than repeating this work in multiple templates.
If you want to embed a sub template in your template, you need to create a dedicated slot. Sub template slots are where you add sub templates to templates -- sub templates placed in these slots are called "blocks". If you create multiple alternative blocks, you can give end users a choice of items to include in their designs, such as a set of products they can select from. For example, if you are preparing a drinks' menu, you can include blocks that allow the end user to select from a list of drinks relevant to the campaign.
By assigning specific attributes to your sub templates, you can filter by these and make sure that only the appropriate sub templates are selected for a given slot. For example, you can ensure that only header blocks can be placed into a header slot.
Just like templates, sub templates can also contain slots for other sub templates. This means that you can prepare your design with multiple levels of ready-made elements that you can reuse and customize.