Split HTML functional pieces into separate libraries