support templating in headers and footers
update index.html