Split up html into templates