I'm sure there should be some way to render another template from within a template so I don't have to copy paste similar looking blocks. I'm just not able to figure it out.
I figured it out.
{call .templateName /}
If you need to pass parameters your can do it this way:
{template .teasersblock}
<div>
{call .teaser}
{param url: 'https://example.com' /}
{param headline: 'My headline example' /}
{/call}
</div>
{/template}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.