Пример #1
0
        public ICompiledResource CompileGroup(string groupConsolidatedUrl, GroupTemplateContext groupTemplateContext)
        {
            var group = groupTemplateContext.FindGroupOrDefault(_finder, groupConsolidatedUrl, _resourceMode);

            if (group == null)
            {
                throw new Exception("No group with consolidatedUrl '" + groupConsolidatedUrl + "' could be found.");
            }

            return(CompileGroup(group));
        }
Пример #2
0
        public ICompiledResource CompileGroup(string groupConsolidatedUrl, GroupTemplateContext groupTemplateContext)
        {
            var group = groupTemplateContext.FindGroupOrDefault(_finder, groupConsolidatedUrl, _resourceMode);

            if (group == null)
            {
                throw new Exception("No group with consolidatedUrl '" + groupConsolidatedUrl + "' could be found.");
            }

            return CompileGroup(group);
        }
Пример #3
0
        public GroupTemplateContext GetGroupTemplateOrDefault(string consolidatedUrl)
        {
            GroupTemplateContext groupTemplateContext = null;

            EachTemplate(c =>
            {
                if (c.GroupTemplate.MatchesConsolidatedUrl(consolidatedUrl))
                {
                    groupTemplateContext = c;
                    return(false);
                }
                return(true);
            });

            return(groupTemplateContext);
        }