split template into header, default, footer