Problem: passing context from outside seems unnecessarily complex

Solution: define global context in template.