I\'m not at all sure that this is even a solvable problem, but supposing that I have a freemarker template, I\'d like to be able to ask the template what variables it uses.<
Execute following regex on the template:
(?<=\$\{)([^\}]+)(?=\})