WrapAction() won't assign a sub template if funtion is set