removing string encode which doesnt seem to encode
[testsuite/python-testing-utils.git] / eteutils / StringTemplater.py
1 import json
2 from string import Template
3
4 class StringTemplater:
5     """StringTemplater is common resource for templating with strings."""
6
7     def template_string(self, template, values):
8         """Template String takes in a string and its values and converts it using the string.Template class"""
9         return Template(template).substitute(values)