Skip to content

Instantly share code, notes, and snippets.

Created October 19, 2016 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7829542adaf1714ad9bc472eef94afe2 to your computer and use it in GitHub Desktop.
Save anonymous/7829542adaf1714ad9bc472eef94afe2 to your computer and use it in GitHub Desktop.
from string import Template
def read_template(filename):
with open(filename, 'r', encoding='utf-8') as template_file:
template_file_content = template_file.read()
return Template(template_file_content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment