I need to get the list of variable needed in the context of a template to be able to give some feedback to the programmer that will use my service.
How can I do that ?
I was thinking on giving a context object that will create the variable when the template try to access it and then give me the list of variable in the context object after rendering.
Is that possible?
Parse the template and you can find all the variables : http://jinja.pocoo.org/docs/api/#the-meta-api Example included.