- person_type = people.house_incumbencies.empty? ? "member" : "lord" %li.list__item = render partial: "pugin/people/list/#{person_type}/#{person_type}", locals: { "#{person_type}": local_assigns.fetch(:people, []), as: person_type }