Subtext.Framework.UI.Skinning.ScriptElementCollectionRenderer.CanScriptsBeMerged C# (CSharp) Method

CanScriptsBeMerged() public static method

public static CanScriptsBeMerged ( Subtext.Framework.UI.Skinning.SkinTemplate template ) : bool
template Subtext.Framework.UI.Skinning.SkinTemplate
return bool
        public static bool CanScriptsBeMerged(SkinTemplate template)
        {
            if(!template.MergeScripts)
                return false;
            else
            {
                if (template.Scripts==null)
                    return false;
                else
                {
                    foreach (Script script in template.Scripts)
                    {
                        if (script.Src.Contains("?"))
                            return false;
                        if (IsScriptRemote(script))
                            return false;
                    }
                    return true;
                }
            }
        }