예제 #1
0
        public string RenderNamed(string name)
        {
            bundleState = GetCachedBundleState(name);
            //TODO: this sucks
            // Revisit https://github.com/jetheredge/SquishIt/pull/155 and https://github.com/jetheredge/SquishIt/issues/183
            //hopefully we can find a better way to satisfy both of these requirements
            var fullName = (BaseOutputHref ?? "") + CachePrefix + name;
            var content  = bundleCache.GetContent(fullName);

            if (content == null)
            {
                AsNamed(name, bundleState.Path);
                return(bundleCache.GetContent(CachePrefix + name));
            }
            return(content);
        }
예제 #2
0
 public string RenderNamed(string name)
 {
     GroupBundles = groupBundlesCache[CachePrefix + name];
     return(bundleCache.GetContent(CachePrefix + name));
 }
예제 #3
0
 public string RenderNamed(string name)
 {
     return(bundleCache.GetContent(name));
 }