Getting the right relative paths for the templates set up and dropping the .html extension from the template name