Update generate to use new nesting view syntax