Split matches.erb into partials