sv764t | 8bf4998 | 2018-10-25 01:42:52 -0400 | [diff] [blame^] | 1 | from string import Template |
2 | |||||
3 | class StringTemplater: | ||||
4 | """StringTemplater is common resource for templating with strings.""" | ||||
5 | |||||
6 | def template_string(self, template, values): | ||||
7 | """Template String takes in a string and its values and converts it using the string.Template class""" | ||||
8 | return Template(template).substitute(values) |