how to fetch the list of necessary bindings in an EEx template or in a AST

,

Having an EEx template which print some “variables” (i.e. ‘<%= address.street %>, <%= address.city %>’ )
is it possible to fetch all needed bindings? in this case I would like an output like ["address.street", "address.city"]

I guess that there is no such function under EEx modules, but maybe is it possibile starting from the AST?

Thanks

For whatever it’s worth, there’s a feature like this coming soon in LiveView / HEEx: