Skip to content

(How) Is it possible to get all available liquid variables from a template? #80

@dkbast

Description

@dkbast

I have a scenario where I have multiple liquid themes which can be interchanged. Instead of a dynamic database I use a CSV file, so I have to know all the variables upfront.
Let me explain this with a simplified example:

For these three Themes:
Theme 1:
title
text
image

Theme 2:
title
text
image

Theme 3:
image
subtitle

I would like to get the output of: title, text, image, subtitle

Is there a builtin routine I have missed? What would be the best way for accomplishing this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions