Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from jinja2 import Template
- temp = Template("""
- {{my_dict['my-key']}}
- """)
- my_dict = {
- 'my-key': 'My Key Output',
- }
- out = temp.render(my_dict=my_dict)
- print(out)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement