Templating the foundation template