Skip to content

Can't get data if use tag 'render' #666

@shkarinn

Description

@shkarinn

Hello. If I use old tag include
{% include 'header/section' %}
my data inside include file is working

For example I can get all data from 11ty global inside header/section.liquid file
{{ collections.all[0].template.templateData.globalData | debug }}

But if use new tag
{% render 'header/section' %}
I got undefined <pre>undefined</pre>

I can get access to data only outside file section.liquid
{% render 'header/section' for contact.buttons as item %}

liquid have section tag, but js version not.
liquidjs have only render, include, layout tags.
But include is Deprecated and working good.
Render tag have problem.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions