You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say we have a global collection seasons, when using the Template Syntax, it renders the names of the seasons as expected:
<templatewebc:type="11ty" 11ty:type="njk">
{%- for season in seasons -%}
<h2>{{ season.name }}</h2>
{%- endfor -%}
</template>
However, when this same block is used within another WebC component, it doesn't render anything:
<!-- oh-no.webc --><div></slot></div><!-- index.webc --><oh-no><templatewebc:type="11ty" 11ty:type="njk">
{%- for season in seasons -%}
<h2>{{ season.name }}</h2>
{%- endfor -%}
</template></oh-no>
Changing the template to a div makes it render the string contents of the njk, making me believe that the webc:type and 11ty:type attributes are ignored in render 🤔
The text was updated successfully, but these errors were encountered:
Say we have a global collection
seasons
, when using the Template Syntax, it renders the names of the seasons as expected:However, when this same block is used within another WebC component, it doesn't render anything:
Changing the
template
to adiv
makes it render the string contents of thenjk
, making me believe that thewebc:type
and11ty:type
attributes are ignored in render 🤔The text was updated successfully, but these errors were encountered: