IsmailS
IsmailS

Reputation: 10863

Nesting closure templates within another template

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.

Upvotes: 3

Views: 939

Answers (2)

CommonSenseCode
CommonSenseCode

Reputation: 25389

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}

Upvotes: 0

IsmailS
IsmailS

Reputation: 10863

I figured it out.

{call .templateName /}

Upvotes: 6

Related Questions