public void Process(BundleContext context, BundleResponse response)
        {
            if (!context.EnableOptimizations)
                return;

            var templateWriter = new TemplateCacheWriter(_moduleName);
            var templateContentReader = new PartialContentReader(RemoveLeadingSlash);
            foreach (var bundleFile in response.Files)
            {
                templateWriter.AddPartial(templateContentReader.GetName(bundleFile), templateContentReader.Read(bundleFile));
            }

            response.ContentType = "text/javascript";
            response.Content = templateWriter.WriteModule();

            _nextTransform.Process(context, response);
        }
        public void Process(BundleContext context, BundleResponse response)
        {
            if (!context.EnableOptimizations)
            {
                return;
            }

            var templateWriter        = new TemplateCacheWriter(_moduleName);
            var templateContentReader = new PartialContentReader(RemoveLeadingSlash);

            foreach (var bundleFile in response.Files)
            {
                templateWriter.AddPartial(templateContentReader.GetName(bundleFile), templateContentReader.Read(bundleFile));
            }

            response.ContentType = "text/javascript";
            response.Content     = templateWriter.WriteModule();

            _nextTransform.Process(context, response);
        }