@staticmethod<EOL><INDENT>def _get_template_data(template_file):<DEDENT>
try:<EOL><INDENT>return get_template_data(template_file)<EOL><DEDENT>except ValueError as ex:<EOL><INDENT>raise InvokeContextException(str(ex))<EOL><DEDENT>
Read the template file, parse it as JSON/YAML and return the template as a dictionary.

:param string template_file: Path to the template to read
:return dict: Template data as a dictionary
:raises InvokeContextException: If template file was not found or the data was not a JSON/YAML