From d050b58d3fde6a049104d8287f8d8cfbe3013d5d Mon Sep 17 00:00:00 2001 From: DR695H Date: Thu, 18 Apr 2019 10:56:38 -0400 Subject: move robotframeworkonap to subdirectory i also moved the build to maven based, although that isnt needed to work right now. Change-Id: Ib18d70e3ea4858cc4b9d51fdc2046b59202640ab Issue-ID: TEST-141 Signed-off-by: DR695H Signed-off-by: Gary Wu --- robotframework-onap/eteutils/StringTemplater.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 robotframework-onap/eteutils/StringTemplater.py (limited to 'robotframework-onap/eteutils/StringTemplater.py') diff --git a/robotframework-onap/eteutils/StringTemplater.py b/robotframework-onap/eteutils/StringTemplater.py new file mode 100644 index 0000000..43d107e --- /dev/null +++ b/robotframework-onap/eteutils/StringTemplater.py @@ -0,0 +1,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) \ No newline at end of file -- cgit 1.2.3-korg