Skip to content

How to get all the variables of a template #532

@benjaminSe1

Description

@benjaminSe1

Hello Guys,

First of all, thank you for your incredible work here !

I am using this lib within an api and I want to implement a function which takes in argument the twig template and return the list of the variables needed to compile/render the twig.

I have been looking at the source code to find any way to achieve this, but so far I didn't find any solution.
Did someone already implemented this kind of function ?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions