Created
July 11, 2014 20:54
-
-
Save gravyboat/154390b0f40bba4e1b69 to your computer and use it in GitHub Desktop.
Rendering out jinja files with a pillar.
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 yaml | |
import jinja2 | |
print jinja2.Template(open('PATH/files/FILE.jinja').read()).render(pillar=yaml.load(open('pillar.example'))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment