Handling fragments to be inserted into the header and footer files.