use **locals() to pass data to templates