Compile the basePath as a handlebars template.