Use current view as the context when calling template function from ItemView