renamed prepareTemplateUrl to getPreparedTemplate