Extracted SexyViewContentOrApp.GetTemplateFromUrl()