Allow templating in headers and footers.