In pystache (or most templating libraries), you can do a substitution such as this:
>>> print pystache.render('{{person}} in {{place}}', {'person': 'Mom', 'place': 'Spain'})
Mom in Spain
Is it possible to do the 'opposite'? i.e. return a dictionary (or more correctly, a set) with all the templates in a string?
>>> templates = pystache.get_templates('{{person}} in {{place}}')
>>> print templates
{'person', 'place'}
Thanks.