Skip to content

Question: Introspection of parsed template #578

@knightmeister

Description

@knightmeister

Is it possible to introspect tags within a parsed template?

I know that FluidTemplate contains a list of Statements but I don't see a way of viewing the tag name and arguments.

What I'm trying to do is look at the layout being used when rendering to do some things before giving it to Fluid to render.

i.e.

{% layout "mylayout.liquid" %}

I would like to be able to find the tag that is specific for layout and then get the value mylayout.liquid from that tag.

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions