blob: 680600fd4e64a4c2aac2a19b0dfaa5899e212975 [file] [log] [blame]
sv764t8bf49982018-10-25 01:42:52 -04001from string import Template
2
3class 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)