Created
October 19, 2016 04:14
-
-
Save anonymous/7829542adaf1714ad9bc472eef94afe2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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