Added license header to templating.py