summaryrefslogtreecommitdiffstats
path: root/eteutils/StringTemplater.py
blob: 43d107e8adb7f78823684d10e55ba82181d0fe95 (plain)
1
2
3
4
5
6
7
8
9
import json
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)