I am new to latte template engine and fiddle around with it since some days. I found a lot of nice and usefull things to make my projects easier and cleaner. But there is one thing I did not find or miss an idea how to handle it.
Lets imagine my sites has this basic layout template:
<header><h1>{$title}</h1></header>
<nav n:inner-foreach="$navigation as $link">
<a href="{$link->url}" n:class="$link->active ? active" n:attr="data-icon: $link->icon">{$link->name}</a>
</nav>
<aside>{include aside}</aside>
<aside>{include aside}</aside>
<aside>{include aside}</aside>
<content>{include content}<content>
<footer>{include footer}</footer>
the content is handled within another template for each site. every one of them looks like this:
{layout 'layout.tpl'}
{$navigation[3]->active=true}
{$title="this page title"}
{block content}
<p>here comes the content</p>
{/block}
{block aside}
<p>here is f.e. a sidebar</p>
{/block}
{block aside}
<p>this is some adverticement</p>
{/block}
now my question is this: how can I use one or more blocks of "aside" within my template which are defined as "block". the best solution whould be something like: "block aside[]" and I handle it inside the main template somehow with a loop. Is there an usefull way to do it? I dont want to use it with variables like the navigation because the content is defined within the template.
thx for ideas and greetings Makka
asideblock in the child template containing both sidebar and advertisement?