split base html into templates