Changed to render from external template.
Accept repository folder as parameter