SkinsScriptsPath and SkinsStylesPath in Site class

Sep 11, 2009 at 9:40 AM

class OxiteWebFormViewEngine:

        public virtual FileEngineResult FindScriptsFile(string fileName)
{
if (!fileName.StartsWith("/"))
{
fileName = "/" + fileName;
}

return FindFile("/Scripts" + fileName);
}

public virtual FileEngineResult FindStylesFile(string fileName)
{
if (!fileName.StartsWith("/"))
{
fileName = "/" + fileName;
}

return FindFile("/Styles" + fileName);
}

Coordinator
Sep 11, 2009 at 10:17 PM

Thanks for the reminder that we should be using the Site properties here instead of the hardcoded values.  :)