Pass the context into the templates if it is available