jinja primer http://www.realpython.com/blog/python/primer-on-jinja-templating/#.U3JGepBwYzv