I haven't been able to find a good example of subclassing string.Template in Python, even though I've seen multiple references to doing so in documentation.
Are there any examples of this on the web?
I want to change the $ to be a different character and maybe change the regex for identifiers.
From python docs:
Example:
In python 3:
Example:
Apparently it is also possible to just omit any of the regex groups
escaped
,named
,braced
orinvalid
to disable it.