summaryrefslogtreecommitdiffstats
path: root/robotframework-onap/eteutils/StringTemplater.py
blob: b2d99ce4df7989b34f30e451bb84d8a1c1fa02a9 (plain)
1
2
3
4
5
6
7
8
from string import Template

class StringTemplater:
    """StringTemplater is common resource for templating with strings."""

    def template_string(self, template, values):
        """Template String takes in a string and its values and converts it using the string.Template class"""
        return Template(template).substitute(values)