Skip to content

Accessing collections inside macros #434

Open
@mirisuzanne

Description

@mirisuzanne

I often want to access collections from inside nunjucks macros, which are walled off from the global scope. If I could create a collections shortcode, I could access them anywhere, without needing a special argument to pass collections into macros.

Is it possible to access my collections inside the .eleventy.js config, in order to create that shortcode?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions