context generation code moved to tasks.py
added content template helper