Extracts footer to a template