Пример #1
0
        // ### Public Methods
        // The build method allows us to define and return a bale.  It
        // accepts a list as relative urls, relative to the application root
        // such as `~/Scripts/script.js` or `~/Styles/style.css` and returns
        // the instanstiated bale that can be further configured.
        public static IBale Build(params string[] items)
        {
            // Check cache to see if bale is currently defined and return
            // cached value otherwise create a new bale and cache it
            string key = Bale.Hash(items);
            if (!_cache.ContainsKey(key))
            {
                _cache[key] = new Bale(items);
            }

            return _cache[key];
        }