Created
November 14, 2015 16:56
-
-
Save Kwpolska/69d9b44cbb28bb82d269 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import glob | |
import os | |
import jinja2 | |
env = jinja2.Environment(loader=jinja2.FileSystemLoader('.')) | |
for f in glob.glob('*.jinja2'): | |
t = env.get_template(f) | |
newf = os.path.splitext(f)[0] + '.yaml' | |
with open(newf, 'w') as fh: | |
fh.write(t.render()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment