Skip to content

Instantly share code, notes, and snippets.

View onceupon's full-sized avatar
🎯
Focusing

Bonnie I-Man Ng onceupon

🎯
Focusing
  • Amazon Web Services (AWS)
  • Taipei
View GitHub Profile
@onceupon
onceupon / jinja2_file_less.py
Created October 25, 2018 09:01 — forked from wrunk/jinja2_file_less.py
python jinja2 examples
#!/usr/bin/env/python
#
# More of a reference of using jinaj2 without actual template files.
# This is great for a simple output transformation to standard out.
#
# Of course you will need to "sudo pip install jinja2" first!
#
# I like to refer to the following to remember how to use jinja2 :)
# http://jinja.pocoo.org/docs/templates/
#