I have a template, say with one variable NAME
my_template = "Hello {{ NAME }}"
Eventually the code will render
the template, eg:
from jinja2 import Template
template = Template(my_template)
// what code would return 'NAME' here?
rendered = template.render(NAME="frank")
I need to get the list of variables / "available args" to the template. In this case, this would return NAME
(likely in a collection of some sort).
(My detailed use case is I accept templates that may, optionally, include some well-known template-variable names, which I need to pull out, and then add to the context as i call render()
)