public static Script ( this helper, string path ) : string | ||
helper | this | |
path | string | |
return | string |
public static string Script(this HtmlHelper helper, string path)
{
if (helper.ViewContext.HttpContext.IsDebuggingEnabled)
{
return path;
}
else
{
return path.Replace("/scripts/", "/scripts-pub/");
}
}