Spliting up html in to templates