Templating foundations