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 :)
Is it possible to introspect tags within a parsed template?
I know that
FluidTemplatecontains a list ofStatements 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.
I would like to be able to find the tag that is specific for
layoutand then get the valuemylayout.liquidfrom that tag.Thanks :)