extract header and footer (templates)