eleventy icon indicating copy to clipboard operation
eleventy copied to clipboard

Can't get access to data inside liquid file which is triggered by the 'render'

Open shkarinn opened this issue 1 year ago • 1 comments

Operating system

Windows 11

Eleventy

2.0.1

Describe the bug

Hello. I can't get access to data inside liquid file which is triggered by the 'render'. But depricated tag 'include' get access to data. 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

undefined

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. Maybe this problem inside 11ty...

Reproduction steps

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See an error

Expected behavior

No response

Reproduction URL

No response

Screenshots

No response

shkarinn avatar Jan 22 '24 12:01 shkarinn

Possibly a duplicate of https://github.com/11ty/eleventy/issues/2453

vrugtehagel avatar Feb 21 '24 09:02 vrugtehagel

Please follow along at #2453!

zachleat avatar Apr 10 '24 21:04 zachleat