Chops layouts into partials