Pretzel.Logic.Templating.Context.SiteContextGenerator.CanBeIncluded C# (CSharp) Method

CanBeIncluded() public method

public CanBeIncluded ( string relativePath ) : bool
relativePath string
return bool
        public bool CanBeIncluded(string relativePath)
        {
            if (excludes.Count > 0 && IsExcludedPath(relativePath))
            {
                return false;
            }

            if (includes.Count > 0 && IsIncludedPath(relativePath))
            {
                return true;
            }

            return !IsSpecialPath(relativePath);
        }